Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de935ae1 authored by Feng Wu's avatar Feng Wu Committed by Marcelo Tosatti
Browse files

KVM: expose SMAP feature to guest



This patch exposes SMAP feature to guest

Signed-off-by: default avatarFeng Wu <feng.wu@intel.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent e1e746b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();