From: Dan Magenheimer Subject: RE: [PATCH] mask cpuid TSC invariant bit for various circumstances (Take 2) Date: Fri, 6 Nov 2009 06:23:24 -0800 (PST) Message-ID: <4952704b-4ae0-4ae4-991c-71fdb050aa1d@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 , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org > On 05/11/2009 21:50, "Dan Magenheimer"=20 > wrote: >=20 > > Mask cpuid TSC invariant bit for some circumstances > > and expose it for others. On upstream Linux kernels, > > non-zero Invariant TSC bit permanently selects TSC > > as the clocksource (currently on Intel only). When > > these kernels run on Xen, when migration is possible > > and TSC is unemulated, this can cause much weirdness. > > But exposing non-zero Invariant TSC has performance > > advantages so we want to expose it when it is safe. > > (Note leaving it exposed/unexposed for dom0 is not an > > issue.) >=20 > I think I pushed you into changing this in a way I like even=20 > less. :-) I can > live with your original patch, so I'll check that in after all. >=20 > -- Keir But note that you were correct that the original patch didn't work with HVM domains, I presume because the xc cpuid policy code doesn't initialize 0x80000007. That's why I pulled the code out of the loop in domain_cpuid and then entirely out to time.c Dan