diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index f85489bcfbe05f3dbf504c7c995a6c91eed5056d..9938bcc0624f2238c0e719187e7b9957a18cd3ff 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -985,6 +985,9 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function) entry->ecx = entry->edx = 0; break; case 0x8000001a: + entry->eax &= GENMASK(2, 0); + entry->ebx = entry->ecx = entry->edx = 0; + break; case 0x8000001e: break; /* Support memory encryption cpuid if host supports it */