From 95d5d75ede92c7ae7b47e8de2694db969b7fc06f Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Mon, 21 Nov 2011 11:10:21 +0000 Subject: xen: disable rtc_clock 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 --- xen-all.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xen-all.c') diff --git a/xen-all.c b/xen-all.c index bdf9c0fc79..b88ad5ddad 100644 --- 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 */ -- cgit v1.2.1