summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-04-01 14:25:33 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-06-05 17:26:38 +0200
commit6d396b55203969ca61cc8f838db2e68433e13f7b (patch)
tree33dc0487be094936e88e9fe498a686cd679dd8d4 /arch/x86/include/asm/kvm_host.h
parent699023e239658e62da6f42f47d31b54788521ec1 (diff)
downloadop-kernel-dev-6d396b55203969ca61cc8f838db2e68433e13f7b.zip
op-kernel-dev-6d396b55203969ca61cc8f838db2e68433e13f7b.tar.gz
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 4700668..8ca32cf 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -709,6 +709,7 @@ struct kvm_x86_ops {
int (*hardware_setup)(void); /* __init */
void (*hardware_unsetup)(void); /* __exit */
bool (*cpu_has_accelerated_tpr)(void);
+ bool (*cpu_has_high_real_mode_segbase)(void);
void (*cpuid_update)(struct kvm_vcpu *vcpu);
/* Create, but do not attach this VCPU */
OpenPOWER on IntegriCloud