From: Dan Magenheimer Subject: RE: [PATCH] pvcpuid: mask TSC invariant bit for various circumstances Date: Wed, 28 Oct 2009 09:50:27 -0700 (PDT) Message-ID: References: <4AE881A8020000780001C71E@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4AE881A8020000780001C71E@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Keir Fraser , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org Hmmm... this could be a real problem for some apps! Is this only a problem for PV domains? I.e, is cpuid always trapped by Xen for HVM domains? > -----Original Message----- > From: Jan Beulich [mailto:JBeulich@novell.com] > Sent: Wednesday, October 28, 2009 10:39 AM > To: Keir Fraser; Xen-Devel (E-mail); Dan Magenheimer > Subject: RE: [Xen-devel] [PATCH] pvcpuid: mask TSC invariant bit for > various circumstances=20 >=20 > >>> Dan Magenheimer 28.10.09 17:27 >>> > >But, that said, I'm still not convinced my patch is the > >right answer. If possible (e.g. using the CPUID masking > >feature Jan referred to), Xen should always hide the TSC >=20 > Actually I just realized that this feature would probably not help you > at all: The bit you're after is in leaf 0x80000007, but the=20 > masking applies > only to leaf 1 (plus 0x80000001 for AMD). >=20 > >Invariant bit from all guests (OS's and apps) and only > >expose it via pvcpuid or some other mechanism. > >Otherwise an OS or app may make false assumptions > >based on an architecturally-specified cpuid bit. > =20 > Jan >=20 >