[gnome-boxes] Set timer policies in libvirt configuration
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Set timer policies in libvirt configuration
- Date: Fri, 1 Jun 2012 20:11:57 +0000 (UTC)
commit e27ec72df94c10ef71f651dfc08ceace32b4a5f0
Author: Christophe Fergeau <cfergeau redhat com>
Date: Thu May 31 14:34:50 2012 +0200
Set timer policies in libvirt configuration
Windows 7 is quite sensitive to the libvirt timer configuration while
other OSes don't care. Configuring the RTC timer to 'catchup' and
the PIT timer to 'delay' seems to help with some freezes during
Windows 7 boot that I'm seeing.
https://bugzilla.gnome.org/show_bug.cgi?id=674035
src/vm-configurator.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 0895f2e..d9335f5 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -35,6 +35,13 @@ private class Boxes.VMConfigurator {
clock.set_offset (DomainClockOffset.LOCALTIME);
else
clock.set_offset (DomainClockOffset.UTC);
+
+ DomainTimer timer = new DomainTimerRtc ();
+ timer.set_tick_policy (DomainTimerTickPolicy.CATCHUP);
+ clock.add_timer (timer);
+ timer = new DomainTimerPit ();
+ timer.set_tick_policy (DomainTimerTickPolicy.DELAY);
+ clock.add_timer (timer);
domain.set_clock (clock);
set_target_media_config (domain, target_path, install_media);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]