Skip to content

Commit 9aa470f

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 9be4ec3 commit 9aa470f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ void kvm_set_cpu_caps(void)
743743
0 /* OSXSAVE */ |
744744
F(AVX) |
745745
F(F16C) |
746-
F(RDRAND)
746+
F(RDRAND) |
747+
EMULATED_F(HYPERVISOR)
747748
);
748749

749750
kvm_cpu_cap_init(CPUID_1_EDX,

0 commit comments

Comments
 (0)