KVM: x86: expose ADX feature to guest
[cascardo/linux.git] / arch / x86 / kvm / cpuid.c
index c697625..a951ae4 100644 (file)
@@ -303,7 +303,8 @@ 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(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED) |
+               F(ADX);
 
        /* all calls to cpuid_count() should be made on the same cpu */
        get_cpu();