KVM: allow compiling out SMM support
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Sep 2022 17:20:13 +0000 (13:20 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:19 +0000 (12:31 -0500)
commit4b8e1b32013da2495244dbdee70f2456e6bc7aca
tree9cea015d6077469b118b34a3a04c4fc0ede4a361
parent1d0da94cdafe38b2c501a8d55f981204e588e259
KVM: allow compiling out SMM support

Some users of KVM implement the UEFI variable store through a paravirtual device
that does not require the "SMM lockbox" component of edk2; allow them to
compile out system management mode, which is not a full implementation
especially in how it interacts with nested virtualization.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220929172016.319443-6-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig
arch/x86/kvm/Makefile
arch/x86/kvm/smm.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
tools/testing/selftests/kvm/x86_64/smm_test.c