|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-4.1-testing] x86/intel: Fix CPUID leaf 7 detection
# HG changeset patch
# User Yang, Wei <wei.y.yang@xxxxxxxxx>
# Date 1306570975 -3600
# Node ID dbe9e02a1f75ea88e93e0f154feb01c570f0195d
# Parent 3f2f2543e9434268b7b5c89b1420383d73003b4a
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>
xen-unstable changeset: 23436:f6ce871e5689
xen-unstable date: Sat May 28 08:57:12 2011 +0100
---
diff -r 3f2f2543e943 -r dbe9e02a1f75 xen/arch/x86/cpu/common.c
--- a/xen/arch/x86/cpu/common.c Sat May 28 09:17:15 2011 +0100
+++ b/xen/arch/x86/cpu/common.c Sat May 28 09:22:55 2011 +0100
@@ -316,9 +316,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, ebx;
+ cpuid_count(0x7, 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-4.1-testing] x86/intel: Fix CPUID leaf 7 detection,
Xen patchbot-4 . 1-testing <=
|
|
|
|
|