OSDN Git Service

x86/cpu, kvm: Add the SMM_CTL MSR not present feature
authorKim Phillips <kim.phillips@amd.com>
Tue, 24 Jan 2023 16:33:17 +0000 (10:33 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 25 Jan 2023 15:37:20 +0000 (16:37 +0100)
commitfaabfcb194a8d0686396e3fff6a5b42911f65191
treef56896cfc7e06bdfdce79babd8e491bb79b1bb1c
parent5b909d4ae59aedc711b7a432da021be0e82c95a0
x86/cpu, kvm: Add the SMM_CTL MSR not present feature

The SMM_CTL MSR not present feature was being open-coded for KVM.
Add it to its newly added CPUID leaf 0x80000021 EAX proper.

Also drop the bit description comments now the code is more
self-describing.

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20230124163319.2277355-7-kim.phillips@amd.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kvm/cpuid.c