[gnome-boxes/gnome-3-4] Set timer policies in libvirt configuration



commit 25c9e866d41ad5a3113f03974bf2d027d4ecb8db
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]