Wei, Gang
2010-Dec-09 02:59 UTC
[Xen-devel] [PATCH]tools: Fix xc_cpuid_hvm_policy to avoid guest CPUID feature missing
Fix xc_cpuid_hvm_policy to avoid guest CPUID feature missing.
Signed-off-by: Wei Gang <gang.wei@intel.com>
diff -r a483f1a08352 tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c Thu Dec 09 04:25:40 2010 +0800
+++ b/tools/libxc/xc_cpuid_x86.c Thu Dec 09 04:58:37 2010 +0800
@@ -222,9 +222,9 @@ static void xc_cpuid_hvm_policy(
bitmaskof(X86_FEATURE_SSE4_2) |
bitmaskof(X86_FEATURE_POPCNT) |
bitmaskof(X86_FEATURE_AES) |
- (xsave_supported)?
+ ((xsave_supported)?
(bitmaskof(X86_FEATURE_AVX) |
- bitmaskof(X86_FEATURE_XSAVE)) : 0);
+ bitmaskof(X86_FEATURE_XSAVE)) : 0));
regs[2] |= bitmaskof(X86_FEATURE_HYPERVISOR);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel