[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/intel: Fix CPUID leaf 7 detection
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |