KVM: x86: do not define SMM-related constants if SMM disabled
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Nov 2022 15:11:42 +0000 (10:11 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:21 +0000 (12:31 -0500)
commita7662aa5e56ffa9adf65699eda541f94e157cc83
tree7c7236255b0d2871a824fac6f1b3f99ee53087a3
parent85672346a707d8e4d5657279dac6b356e1edf24a
KVM: x86: do not define SMM-related constants if SMM disabled

The hidden processor flags HF_SMM_MASK and HF_SMM_INSIDE_NMI_MASK
are not needed if CONFIG_KVM_SMM is turned off.  Remove the
definitions altogether and the code that uses them.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/smm.c
arch/x86/kvm/x86.c