X86: Prepare PCID/INVPCID for hvm
This patch is used to prepare exposing PCID/INVPCID features to hvm guest.
The specific exposure result depend on hvm paging mode (hap/shadow), which would
be handled at next patch.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
diff -r 1b62d4e08880 tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c Thu Nov 17 23:09:45 2011 +0800
+++ b/tools/libxc/xc_cpuid_x86.c Thu Nov 17 23:16:30 2011 +0800
@@ -311,6 +311,7 @@ static void xc_cpuid_hvm_policy(
bitmaskof(X86_FEATURE_SSSE3) |
bitmaskof(X86_FEATURE_FMA) |
bitmaskof(X86_FEATURE_CX16) |
+ bitmaskof(X86_FEATURE_PCID) |
bitmaskof(X86_FEATURE_SSE4_1) |
bitmaskof(X86_FEATURE_SSE4_2) |
bitmaskof(X86_FEATURE_MOVBE) |
@@ -363,6 +364,7 @@ static void xc_cpuid_hvm_policy(
bitmaskof(X86_FEATURE_SMEP) |
bitmaskof(X86_FEATURE_BMI2) |
bitmaskof(X86_FEATURE_ERMS) |
+ bitmaskof(X86_FEATURE_INVPCID) |
bitmaskof(X86_FEATURE_FSGSBASE));
} else
regs[1] = 0;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel