x86/tools: Expose SMAP to HVM guests
PATCH v3 9/9 x86/tools: Expose SMAP to HVM guests
This patch exposes SMAP festure to HVM guests
Signed-off-by Feng Wu <[email protected]>
Acked-by Ian Campbell <[email protected]>
--- tools/libxc/xc_cpufeature.h | 1 + tools/libxc/xc_cpuid_x86.c | 1 + 2 files changed, 2 insertions(+)
tools/libxc/xc_cpufeature.h +1 -0
@@ -137,5 +137,6 @@#define X86_FEATURE_ERMS 9/* Enhanced REP MOVSB/STOSB */ #define X86_FEATURE_INVPCID 10/* Invalidate Process Context ID */ #define X86_FEATURE_RTM 11/* Restricted Transactional Memory */ +#define X86_FEATURE_SMAP 20/* Supervisor Mode Access Protection */ #endif /* __LIBXC_CPUFEATURE_H */
tools/libxc/xc_cpuid_x86.c +1 -0
@@ -367,6 +367,7 @@ static void xc_cpuid_hvm_policy(bitmaskof (X86_FEATURE_HLE ) |bitmaskof (X86_FEATURE_AVX2 ) |bitmaskof (X86_FEATURE_SMEP ) | +bitmaskof (X86_FEATURE_SMAP ) |bitmaskof (X86_FEATURE_BMI2 ) |bitmaskof (X86_FEATURE_ERMS ) | bitmaskof(X86_FEATURE_INVPCID) |
Signature · 1 line
1.8.3.1