diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-29 19:20:16 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-09 18:31:20 +0100 |
commit | cf7316d0361c5d3289611402b5ac0c64c918b20b (patch) | |
tree | d53d3caea810fb3d71e5d28335428da3914a7e5e /arch/x86/kvm/smm.h | |
parent | KVM: x86: remove SMRAM address space if SMM is not supported (diff) | |
download | linux-cf7316d0361c5d3289611402b5ac0c64c918b20b.tar.xz linux-cf7316d0361c5d3289611402b5ac0c64c918b20b.zip |
KVM: x86: do not define KVM_REQ_SMI if SMM disabled
This ensures that all the relevant code is compiled out, in fact
the process_smi stub can be removed too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220929172016.319443-9-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/smm.h')
-rw-r--r-- | arch/x86/kvm/smm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/smm.h b/arch/x86/kvm/smm.h index 8debe81494c6..53c81394ebdb 100644 --- a/arch/x86/kvm/smm.h +++ b/arch/x86/kvm/smm.h @@ -27,7 +27,6 @@ void process_smi(struct kvm_vcpu *vcpu); #else static inline int kvm_inject_smi(struct kvm_vcpu *vcpu) { return -ENOTTY; } static inline bool is_smm(struct kvm_vcpu *vcpu) { return false; } -static inline void process_smi(struct kvm_vcpu *vcpu) { WARN_ON_ONCE(1); } /* * emulator_leave_smm is used as a function pointer, so the |