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-changelog

[Xen-changelog] [xen-unstable] x86/intel: Fix CPUID leaf 7 detection

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86/intel: Fix CPUID leaf 7 detection
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 16 Jun 2011 11:12:06 +0100
Delivery-date: Thu, 16 Jun 2011 03:21:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Yang, Wei <wei.y.yang@xxxxxxxxx>
# Date 1306569432 -3600
# Node ID f6ce871e568949f5817470f6c7bab6ed1f8f6c13
# Parent  c15f06b99bbe0498c6fbad8155aec54c593f8ceb
x86/intel: Fix CPUID leaf 7 detection

Must set subleaf to 0 (input ECX==0).

Signed-off-by: Yang, Wei <wei.y.yang@xxxxxxxxx>
Signed-off-by: Li, Xin <xin.li@xxxxxxxxx>
---


diff -r c15f06b99bbe -r f6ce871e5689 xen/arch/x86/cpu/common.c
--- a/xen/arch/x86/cpu/common.c Sat May 28 08:33:54 2011 +0100
+++ b/xen/arch/x86/cpu/common.c Sat May 28 08:57:12 2011 +0100
@@ -262,9 +262,11 @@
        }
 
        /* Intel-defined flags: level 0x00000007 */
-       if ( c->cpuid_level >= 0x00000007 )
-               c->x86_capability[X86_FEATURE_FSGSBASE / 32]
-                       = cpuid_ebx(0x00000007);
+       if ( c->cpuid_level >= 0x00000007 ) {
+               u32 dummy;
+               cpuid_count(0x00000007, 0, &dummy, &ebx, &dummy, &dummy);
+               c->x86_capability[X86_FEATURE_FSGSBASE / 32] = ebx;
+       }
 
        early_intel_workaround(c);
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86/intel: Fix CPUID leaf 7 detection, Xen patchbot-unstable <=