From: Keir Fraser Subject: Re: [PATCH] mask cpuid TSC invariant bit for various circumstances (Take 2) Date: Fri, 06 Nov 2009 16:26:08 +0000 Message-ID: References: <4952704b-4ae0-4ae4-991c-71fdb050aa1d@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4952704b-4ae0-4ae4-991c-71fdb050aa1d@default> 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 , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 06/11/2009 14:23, "Dan Magenheimer" wrote: >> I think I pushed you into changing this in a way I like even >> less. :-) I can >> live with your original patch, so I'll check that in after all. >> >> -- 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 Even if it didn't initialise 0x80000007 --- which actually I am sure it does, as DEF_MAX_EXT is defined as 0x80000008 in xc_cpuid_x86.c --- then the result will be we return all zeroes for that leaf. And that's safe. So I think the original patch is fine for HVM guests too. -- Keir