KVM: x86: advertise KVM_CAP_X86_SMM
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 1 Apr 2015 12:25:33 +0000 (14:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:26:38 +0000 (17:26 +0200)
commit6d396b55203969ca61cc8f838db2e68433e13f7b
tree33dc0487be094936e88e9fe498a686cd679dd8d4
parent699023e239658e62da6f42f47d31b54788521ec1
KVM: x86: advertise KVM_CAP_X86_SMM

... and we're done. :)

Because SMBASE is usually relocated above 1M on modern chipsets, and
SMM handlers might indeed rely on 4G segment limits, we only expose it
if KVM is able to run the guest in big real mode.  This includes any
of VMX+emulate_invalid_guest_state, VMX+unrestricted_guest, or SVM.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c