KVM: nVMX: additional checks on vmxon region
commit3573e22cfecaac83f82ef4f6847d90e466fc8e10
authorBandan Das <bsd@redhat.com>
Tue, 6 May 2014 06:19:16 +0000 (6 02:19 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 May 2014 17:00:27 +0000 (6 19:00 +0200)
treead68136dbdd69476b8bfcced376aa392a4b89b76
parent19677e32fe7d6913e07ce80f6f3dc7663ac7fe67
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>
arch/x86/kvm/cpuid.c
arch/x86/kvm/vmx.c