From: Ian Campbell Subject: Re: [PATCH v4 12/12] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus Date: Wed, 1 May 2013 12:26:45 +0100 Message-ID: <1367407605.3142.699.camel@zakaz.uk.xensource.com> References: <1366990117-8689-12-git-send-email-stefano.stabellini@eu.citrix.com> <1367245070.3142.297.camel@zakaz.uk.xensource.com> <1367311099.3142.413.camel@zakaz.uk.xensource.com> <1367402028.3142.665.camel@zakaz.uk.xensource.com> <1367404584.3142.689.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-05-01 at 12:15 +0100, Stefano Stabellini wrote: > > Or I suppose we have some PV mechanism to reset the kernels idea of the > > clock frequency? > > I think it is possible: if we exposed the "factor" to the guest and > accounted for the stolen ticks in the vtimer offset, the guest would > have everything it needs to calculate the time. Agreed. Exposing the factor may need to only consist of the guest rereading CNTFRQ after a resume. We can probably take this particular patch based on this understanding of where we are headed (it doesn't make things worse). Shall we aim to have vtimer offset do the right thing in 4.3 though? Ian.