Skip to content

Commit

Permalink
KVM: expose SMAP feature to guest
Browse files Browse the repository at this point in the history
This patch exposes SMAP feature to guest

Signed-off-by: Feng Wu <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
Feng Wu authored and matosatti committed Apr 14, 2014
1 parent e1e746b commit de935ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit de935ae

Please sign in to comment.