From: Keir Fraser Subject: Re: [PATCH] replace rdtsc emulation-vs-native xen boot option with per-domain (hypervisor part) Date: Tue, 06 Oct 2009 10:09:51 +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 , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 06/10/2009 08:07, "Keir Fraser" wrote: >> Perhaps a better choice would be for emulated tsc >> to return Xen system time in both kernel and user >> mode (which is what it does for HVM domains) and, >> when a domain has tsc_native==0, >> Xen sets its pvclock parameters so that no scaling >> occurs? This results in the guest reporting that >> it has a 1GHz clock, but may be more consistent. > > Yes, this has to be fixed. There's no good reason for different TSC > behaviours between kernel and userspace when both are emulated. If nothing > else, when Jeremy's patches go in (which I am sure they will, as the concept > is sane and the implementation appears so too) then that is going to be > incompatible with emulated tsc as it behaves currently. Should be fixed by c/s 20271. -- Keir