KVM: x86: Advertise HYPERVISOR in KVM_GET_SUPPORTED_CPUID

Unconditionally advertise "support" for the HYPERVISOR feature in CPUID,
as the flag simply communicates to the guest that's it's running under a
hypervisor.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-39-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Sean Christopherson
2024-11-27 17:34:05 -08:00
parent 9be4ec35d6
commit 9aa470f5dd

View File

@@ -743,7 +743,8 @@ void kvm_set_cpu_caps(void)
0 /* OSXSAVE */ |
F(AVX) |
F(F16C) |
F(RDRAND)
F(RDRAND) |
EMULATED_F(HYPERVISOR)
);
kvm_cpu_cap_init(CPUID_1_EDX,