]> git.proxmox.com Git - mirror_qemu.git/commitdiff
xen: disable rtc_clock
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 21 Nov 2011 11:10:21 +0000 (11:10 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 17 May 2012 10:43:32 +0000 (10:43 +0000)
rtc_clock is only used by the RTC emulator (mc146818rtc.c), however Xen
has its own RTC emulator in the hypervisor so we can disable it.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-all.c

index bdf9c0fc79886b09e18447e1ae369adcd2658710..b88ad5ddad57b4b2f6eee7efd6d87d25e95b582f 100644 (file)
--- a/xen-all.c
+++ b/xen-all.c
@@ -603,6 +603,10 @@ void xen_vcpu_init(void)
         qemu_register_reset(xen_reset_vcpu, first_cpu);
         xen_reset_vcpu(first_cpu);
     }
+    /* if rtc_clock is left to default (host_clock), disable it */
+    if (rtc_clock == host_clock) {
+        qemu_clock_enable(rtc_clock, false);
+    }
 }
 
 /* get the ioreq packets from share mem */