From: Keir Fraser Subject: Re: Re: [PATCH] [PVOPS] dom0 sync xen wallclock Date: Thu, 11 Feb 2010 00:06:11 +0000 Message-ID: References: <4B733CA0.3080109@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B733CA0.3080109@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge , Stefano Stabellini Cc: Ian Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 10/02/2010 23:09, "Jeremy Fitzhardinge" wrote: > There is one big difference between the Xen clock and the CMOS clock, > which is that the Xen clock is being concurrently accessed by other > domains. If it is being updated periodically, then there will be > discontinuities in time which may affect other domains. But since > there's no time-warp ABI to Xen, I don't think this can really be > avoided; anyone reading periodically the Xen clock needs to be able to > deal with any discontinuities. pvops kernels only inspect it at boot > time, and so won't see any subsequent time adjustments anyway. A Xen ABI for adjtime()-alike warping of Xen system time is something we should add at some point, as that's the logical thing for ntp in dom0 to affect, keeping the system's 'nanosecond ticker' in sync with the wider world. That'd keep all domU clocks in sync, all except for fixed wallclock offsets. But it doesn't currently exist, so instead it gets bunged in with Xen's existing settimeofday()-alike interface: hence domUs either can see discontinuities, or don't get the automatic benefits of ntp sync at all, because they only read the wallclock offset at boot time. -- Keir