|
|
@@ -256,6 +256,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
|
|
|
#endif
|
|
|
unsigned f_rdtscp = kvm_x86_ops->rdtscp_supported() ? F(RDTSCP) : 0;
|
|
|
unsigned f_invpcid = kvm_x86_ops->invpcid_supported() ? F(INVPCID) : 0;
|
|
|
+ unsigned f_mpx = kvm_x86_ops->mpx_supported ?
|
|
|
+ (kvm_x86_ops->mpx_supported() ? F(MPX) : 0) : 0;
|
|
|
|
|
|
/* cpuid 1.edx */
|
|
|
const u32 kvm_supported_word0_x86_features =
|
|
|
@@ -303,7 +305,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
|
|
|
/* cpuid 7.0.ebx */
|
|
|
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(RDSEED) |
|
|
|
+ F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | f_mpx | F(RDSEED) |
|
|
|
F(ADX);
|
|
|
|
|
|
/* all calls to cpuid_count() should be made on the same cpu */
|