aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_cpuid_x86.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-07 18:24:12 +0000
committerKeir Fraser <keir@xen.org>2010-12-07 18:24:12 +0000
commit21c4d089ba2a236dcf33a06222070bd6c60c6e3d (patch)
tree272264b493a3c1f3b355896607a78a623037eadd /tools/libxc/xc_cpuid_x86.c
parent91ddbc059f3f563cd38e82095f19facf6e2257af (diff)
downloadxen-21c4d089ba2a236dcf33a06222070bd6c60c6e3d.tar.gz
xen-21c4d089ba2a236dcf33a06222070bd6c60c6e3d.tar.bz2
xen-21c4d089ba2a236dcf33a06222070bd6c60c6e3d.zip
x86 hvm: x2APIC emulation
This patch would enable Xen to handle x2APIC MSR accessing of HVM guest, which is faster(avoid decoding of MMIO accessing). The credit comes to Gleb Natapov who complete the work for KVM. Have tested with 4 vcpus guest, with/without x2apic support. From: Sheng Yang <sheng.yang@intel.com> Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/libxc/xc_cpuid_x86.c')
-rw-r--r--tools/libxc/xc_cpuid_x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c
index 7d963a903e..5df426ce6c 100644
--- a/tools/libxc/xc_cpuid_x86.c
+++ b/tools/libxc/xc_cpuid_x86.c
@@ -208,7 +208,8 @@ static void xc_cpuid_hvm_policy(
(bitmaskof(X86_FEATURE_AVX) |
bitmaskof(X86_FEATURE_XSAVE)) : 0);
- regs[2] |= bitmaskof(X86_FEATURE_HYPERVISOR);
+ regs[2] |= (bitmaskof(X86_FEATURE_HYPERVISOR) |
+ bitmaskof(X86_FEATURE_X2APIC));
regs[3] &= (bitmaskof(X86_FEATURE_FPU) |
bitmaskof(X86_FEATURE_VME) |