summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorFeng Wu <feng.wu@intel.com>2014-04-01 17:46:36 +0800
committerMarcelo Tosatti <mtosatti@redhat.com>2014-04-14 17:50:37 -0300
commitde935ae15b0db57f7fb837b37380ee94d4b0fec3 (patch)
treef67ae44c0b9afbc3f5ed424f66720dab3f187fdf /arch/x86/kvm/cpuid.c
parente1e746b3c55d1d1e0841a2e600a154d8f6747232 (diff)
downloadlinux-de935ae15b0db57f7fb837b37380ee94d4b0fec3.tar.bz2
KVM: expose SMAP feature to guest
This patch exposes SMAP feature to guest Signed-off-by: Feng Wu <feng.wu@intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r--arch/x86/kvm/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index bea60671ef8a..f47a104a749c 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -308,7 +308,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
const u32 kvm_supported_word9_x86_features =
F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) |
F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | f_mpx | F(RDSEED) |
- F(ADX);
+ F(ADX) | F(SMAP);
/* all calls to cpuid_count() should be made on the same cpu */
get_cpu();