From: Ian Campbell Subject: Re: [PATCH v3 13/13] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus Date: Fri, 26 Apr 2013 15:37:26 +0100 Message-ID: <1366987046.3142.124.camel@zakaz.uk.xensource.com> References: <1366830463-12153-13-git-send-email-stefano.stabellini@eu.citrix.com> <1366888891.20256.503.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 Fri, 2013-04-26 at 15:30 +0100, Stefano Stabellini wrote: > > Are you sure this is as simple as this? > > > > At the very least I'm surprised that we don't need to consult b->offset > > anywhere other than at init time, if vcpus are supposed to see a uniform > > view of time. > > > > Or is it the case that what actually needs to happen is that t->offset > > goes away and b->offset is used everywhere? > > That would be another (probably better) way of doing it: the only important > thing is that the start time on both vcpus is the same. As it stand yes, although I can't help thinking that the virt timer ought not to be cleverer, and the offset adjusted based on stolen time or something like that. Otherwise it isn't really distinct from physical time with holes in it... But that's a big can-o-worms. Ian.