From patchwork Tue Feb 14 15:07:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v5,2/6] xen: disable rtc_clock From: Stefano Stabellini X-Patchwork-Id: 141206 Message-Id: <1329232038-12349-2-git-send-email-stefano.stabellini@eu.citrix.com> To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Stefano Stabellini , jan.kiszka@siemens.com, avi@redhat.com, pbonzini@redhat.com Date: Tue, 14 Feb 2012 15:07:14 +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 --- xen-all.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index fd39168..101c962 100644 --- a/xen-all.c +++ b/xen-all.c @@ -514,6 +514,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 */