WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] CPUID level 0x00000007:0 (ebx) is word 9, instea

To: "Li, Xin" <xin.li@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] CPUID level 0x00000007:0 (ebx) is word 9, instead of word 7
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Tue, 31 May 2011 13:39:34 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
Delivery-date: Tue, 31 May 2011 05:41:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=YTSRI4cie/XIvrm6qjsa0mjJFyxcjn3v8+8jNFzYbss=; b=MjFsInpQd87qnvnAz8sedE5Lbp8uYjicUrD5DsrsX7zI1IQk3ro84fA30ghcgi4gla Q0nshba9gEg213muKzbhdI7PmXCrFxhECiLTYXAWwEGwPANpaGNeo7PJNo0FG4E7Ev+v fAiLoKfZGYT7LELm1HA1hsRYkiEK0Tk4pXmBk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=uXfy3b5s5PxBoo2V7wDsKYAQYwKEhkhWT5wEjI3+026Q8XHDVE3Q8U3QxYmXQ6kxhD U33joc+jXAuWziBhXOKjtIDW/yh7Sr9o+cu7uo916qZgLzwjOTwIOp0GuYSmibw5JNXa yUWPsD6Jt8jwMIEvGA5o+VkaLuEuKw6GmH/Rg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <FC2FB65B4D919844ADE4BE3C2BB739AD5AA820E8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwfIscg73ZmoXXFQJuTueVDpJCJigAbQRBZ
Thread-topic: [PATCH] CPUID level 0x00000007:0 (ebx) is word 9, instead of word 7
User-agent: Microsoft-Entourage/12.29.0.110113
On 31/05/2011 00:39, "Li, Xin" <xin.li@xxxxxxxxx> 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 <xin.li@xxxxxxxxx>
> 
> 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)



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel