From: Sean Christopherson Date: Thu, 28 Nov 2024 01:34:05 +0000 (-0800) Subject: KVM: x86: Advertise HYPERVISOR in KVM_GET_SUPPORTED_CPUID X-Git-Tag: v6.14-rc1~94^2~4^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9aa470f5ddb2aa8de152f72795b7dcd44a071b66;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20241128013424.4096668-39-seanjc@google.com Signed-off-by: Sean Christopherson --- diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index f0ee773704d5e..202ab3f55f53e 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -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,