aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2014-05-06 02:19:16 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-05-06 19:00:27 +0200
commit3573e22cfecaac83f82ef4f6847d90e466fc8e10 (patch)
treead68136dbdd69476b8bfcced376aa392a4b89b76 /arch/x86/kvm/cpuid.c
parentKVM: nVMX: rearrange get_vmx_mem_address (diff)
downloadlinux-dev-3573e22cfecaac83f82ef4f6847d90e466fc8e10.tar.xz
linux-dev-3573e22cfecaac83f82ef4f6847d90e466fc8e10.zip
KVM: nVMX: additional checks on vmxon region
Currently, the vmxon region isn't used in the nested case. However, according to the spec, the vmxon instruction performs additional sanity checks on this region and the associated pointer. Modify emulated vmxon to better adhere to the spec requirements Signed-off-by: Bandan Das <bsd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r--arch/x86/kvm/cpuid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 333b88db22fe..17b42fabc842 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -732,6 +732,7 @@ int cpuid_maxphyaddr(struct kvm_vcpu *vcpu)
not_found:
return 36;
}
+EXPORT_SYMBOL_GPL(cpuid_maxphyaddr);
/*
* If no match is found, check whether we exceed the vCPU's limit