This patch fixes CPUID leaf 7 syntax in Xen, which needs to set sub leaf to 0 (input ECX=0). Signed-off-by: Yang, Wei <wei.y.yang@intel.com> Signed-off-by: Li, Xin <xin.li@intel.com> common.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -r 88fe9f780b3d -r 3ffa6082b9a0 xen/arch/x86/cpu/common.c --- a/xen/arch/x86/cpu/common.c Thu May 26 17:16:47 2011 +0100 +++ b/xen/arch/x86/cpu/common.c Sat May 28 06:02:37 2011 +0800 @@ -263,8 +263,11 @@ /* Intel-defined flags: level 0x00000007 */ if ( c->cpuid_level >= 0x00000007 ) - c->x86_capability[X86_FEATURE_FSGSBASE / 32] - = cpuid_ebx(0x00000007); + { + u32 dummy; + cpuid_count(0x00000007, 0, &dummy, &ebx, &dummy, &dummy); + c->x86_capability[X86_FEATURE_FSGSBASE / 32] = ebx; + } early_intel_workaround(c); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel