From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6Fu-000765-1e for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS6Fn-0004km-KC for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:33 -0400 Received: from smtp.citrix.com ([66.165.176.89]:6162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6Fn-0004dX-Fr for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:27 -0400 From: Stefano Stabellini Date: Wed, 9 May 2012 13:44:14 +0100 Message-ID: <1336567456-20202-2-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1.1 2/4] xen: disable rtc_clock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Stefano Stabellini 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 bdf9c0f..b88ad5d 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 */ -- 1.7.2.5