From: Dan Magenheimer Subject: RE: TSC scaling and softtsc reprise, and PROPOSAL Date: Thu, 23 Jul 2009 09:45:29 -0700 (PDT) Message-ID: <9372d304-72e8-4046-bd83-d79973dd0924@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable 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: Keir Fraser , Ian Pratt , "Zhang, Xiantao" , "Xen-Devel (E-mail)" Cc: "Dong, Eddie" , John Levon List-Id: xen-devel@lists.xenproject.org > >> pre-VT it wasn't possible to trap RDTSC, so this can't=20 > help PV guests. > >=20 > > 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.) >=20 > Forgot about CR4.TSD. Of course it's not going to be a super=20 > fast path, > since #GP(0) will need to be demuxed by decoding the faulting=20 > instruction in > the hypervisor, via a not-so-short path. And demuxing/decoding can never be "fast enough"? Even if this particular situation is special-cased? I'm not saying it will be pretty, or maintainable, just wondering what the best possible could be?