From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] CPUID level 0x00000007:0 (ebx) is word 9, instead of word 7 Date: Tue, 31 May 2011 13:39:34 +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: "Li, Xin" Cc: xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 31/05/2011 00:39, "Li, Xin" wrote: > CPUID level 0x00000007:0 (ebx) is word 9, instead of word 7. > > ... make it consistent with native Linux. This is just a cleanup, not a bug fix? -- Keir > Signed-off-by: Li Xin > > diff -r d7c755c25bb9 xen/include/asm-x86/cpufeature.h > --- a/xen/include/asm-x86/cpufeature.h Sat May 28 08:58:08 2011 +0100 > +++ b/xen/include/asm-x86/cpufeature.h Tue May 31 07:34:34 2011 +0800 > @@ -142,7 +142,7 @@ > #define X86_FEATURE_TOPOEXT (6*32+22) /* topology extensions CPUID leafs > */ > > /* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 9 */ > -#define X86_FEATURE_FSGSBASE (7*32+ 0) /* {RD,WR}{FS,GS}BASE instructions > */ > +#define X86_FEATURE_FSGSBASE (9*32+ 0) /* {RD,WR}{FS,GS}BASE instructions > */ > > #define cpu_has(c, bit) test_bit(bit, (c)->x86_capability) > #define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability)