[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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@xxxxxxxxx>

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);

Attachment: guest_cpuid_fix.patch
Description: guest_cpuid_fix.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.