KVM: x86: remove SMRAM address space if SMM is not supported
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Sep 2022 17:20:15 +0000 (13:20 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:20 +0000 (12:31 -0500)
commitba97bb07e0b28c962015aaf219005928774b886c
tree23cbe368d0eb321831f2389521e706c65d690cb7
parent31e83e21cf00fe5b669eb352ff3ed70e74b40fad
KVM: x86: remove SMRAM address space if SMM is not supported

If CONFIG_KVM_SMM is not defined HF_SMM_MASK will always be zero, and
we can spare userspace the hassle of setting up the SMRAM address space
simply by reporting that only one address space is supported.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220929172016.319443-8-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h