From: Keir Fraser Subject: Re: Xen system skew MUCH worse than tsc skew (was RE: RE: [PATCH] record max stime skew (was RE: [PATCH] strictly increasing hvm guest time)) Date: Fri, 11 Jul 2008 22:27:52 +0100 Message-ID: References: <20080711145339796.00000003744@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080711145339796.00000003744@djm-pc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "dan.magenheimer@oracle.com" , "Xen-Devel (E-mail)" Cc: Dave Winchell List-Id: xen-devel@lists.xenproject.org On 11/7/08 21:53, "Dan Magenheimer" wrote: > 1) by a boot option, or > 2) by the TSC_CONSTANT cpu flag, or > 3) when determined dynamically to be safe using code similar > to arch/x86/tsc_sync.c in recent Linux kernels > > (1) is by far the easiest (perhaps not too late for 3.3?) > while (3) is clearly the best for users but adds lots of > code (bloat/untested) (1) is perhaps fine. How does (2) work? The individual CPUs do not know whether they are synchronised across the mainboard. I think constant-tsc is necessary (individual CPUs must not vary their multiplier of the input clock rate) but may not be sufficient. I don't know how much code is involved in (3). -- Keir