From: Keir Fraser Subject: Re: TSC scaling and softtsc reprise, and PROPOSAL Date: Mon, 20 Jul 2009 18:14:46 +0100 Message-ID: References: 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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" Cc: Ian Pratt , "Dong, Eddie" , "Zhang, Xiantao" , John Levon List-Id: xen-devel@lists.xenproject.org On 20/07/2009 18:05, "Dan Magenheimer" wrote: > The default mode for all xen systems should be that all rdtsc > instructions should be emulated by xen using xen system time > as the timestamp counter (i.e. nanosecond frequency). > > The no-softtsc Xen boot option remains available to force the > non-trapping mechanism if desired. It might make sense to > add a per-guest config option to override per guest. > > The Xen CPU info emulation should reflect that tsc is constant > and safe to use on an SMP. > > Comments? I think someone at Intel (Eddie?) was studying the > TSC emulation path to see if it could be faster, but I'm not > sure where that ended up. Defaults which slow things down are never popular. The slowdown on a non-idle Solaris guest, for example, could be significant. It is a correctness/accuracy vs performance tradeoff though. But I don't think there are many real-world complaints about the TSC accuracy now -- I think the default is set appropriately. -- Keir