OSDN Git Service

KVM: x86: Advertise that the SMM_CTL MSR is not supported
authorJim Mattson <jmattson@google.com>
Fri, 7 Oct 2022 22:16:44 +0000 (15:16 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 Dec 2022 18:45:59 +0000 (13:45 -0500)
commit74bee0cad8dcd8ddec5e763c369239fc5990676a
tree50b7eefd206c9a544198dbf1f4feb8c26b42ea0a
parent0c2a04128f500ea4dfc6bc449507005b998b76ab
KVM: x86: Advertise that the SMM_CTL MSR is not supported

CPUID.80000021H:EAX[bit 9] indicates that the SMM_CTL MSR (0xc0010116) is
not supported. This defeature can be advertised by KVM_GET_SUPPORTED_CPUID
regardless of whether or not the host enumerates it; currently it will be
included only if the host enumerates at least leaf 8000001DH, due to a
preexisting bug in QEMU that KVM has to work around (commit f751d8eac176,
"KVM: x86: work around QEMU issue with synthetic CPUID leaves", 2022-04-29).

Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20221007221644.138355-1-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c