From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqmzu-0002Qh-Qa for qemu-devel@nongnu.org; Fri, 27 Jan 2012 09:41:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqmzp-0007GI-5M for qemu-devel@nongnu.org; Fri, 27 Jan 2012 09:41:50 -0500 Received: from lo.gmane.org ([80.91.229.12]:54018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqmzp-0007GB-0N for qemu-devel@nongnu.org; Fri, 27 Jan 2012 09:41:45 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rqmzn-0000ML-Dp for qemu-devel@nongnu.org; Fri, 27 Jan 2012 15:41:43 +0100 Received: from 93-34-182-16.ip50.fastwebnet.it ([93.34.182.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 15:41:43 +0100 Received: from pbonzini by 93-34-182-16.ip50.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 15:41:43 +0100 From: Paolo Bonzini Date: Fri, 27 Jan 2012 15:41:29 +0100 Message-ID: References: <1327667215-5411-2-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <1327667215-5411-2-git-send-email-stefano.stabellini@eu.citrix.com> Subject: Re: [Qemu-devel] [PATCH v2 2/5] 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 On 01/27/2012 01:26 PM, Stefano Stabellini wrote: > 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 | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/xen-all.c b/xen-all.c > index d1fc597..bf183f7 100644 > --- a/xen-all.c > +++ b/xen-all.c > @@ -513,6 +513,7 @@ void xen_vcpu_init(void) > qemu_register_reset(xen_reset_vcpu, first_cpu); > xen_reset_vcpu(first_cpu); > } > + qemu_clock_enable(rtc_clock, false); > } > > /* get the ioreq packets from share mem */ Depending on "-rtc clock=vm" or "-rtc clock=rt", this may not be true. Why do you need to instantiate an RTC at all? Paolo