From: Keir Fraser Subject: Re: TSC scaling and softtsc reprise, and PROPOSAL Date: Thu, 23 Jul 2009 16:45:39 +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 , Ian Pratt , "Zhang, Xiantao" , "Xen-Devel (E-mail)" Cc: "Dong, Eddie" , John Levon List-Id: xen-devel@lists.xenproject.org On 23/07/2009 16:18, "Dan Magenheimer" wrote: >> pre-VT it wasn't possible to trap RDTSC, so this can't help PV guests. > > For PV guests, CR4.TSD would always be set, generating > a general protection fault for every rdtsc. (Or perhaps > I am missing some x86 architectural subtlety? This is > how it is done on ia64.) Forgot about CR4.TSD. Of course it's not going to be a super fast path, since #GP(0) will need to be demuxed by decoding the faulting instruction in the hypervisor, via a not-so-short path. -- Keir