projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94fb68
)
Fix xc_cpuid_hvm_policy to avoid guest CPUID feature missing.
author
Keir Fraser
<keir@xen.org>
Thu, 9 Dec 2010 08:34:04 +0000
(08:34 +0000)
committer
Keir Fraser
<keir@xen.org>
Thu, 9 Dec 2010 08:34:04 +0000
(08:34 +0000)
Signed-off-by: Wei Gang <gang.wei@intel.com>
tools/libxc/xc_cpuid_x86.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_cpuid_x86.c
b/tools/libxc/xc_cpuid_x86.c
index 5df426ce6cf73bdad6042fe4062a1f256a52b847..6ae192d10f70a8d859ebf3304a30d32db2a3dfb1 100644
(file)
--- a/
tools/libxc/xc_cpuid_x86.c
+++ b/
tools/libxc/xc_cpuid_x86.c
@@
-204,9
+204,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) |
bitmaskof(X86_FEATURE_X2APIC));