]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Validate CR3 target count on nested VM-entry
authorJim Mattson <jmattson@google.com>
Fri, 5 May 2017 18:28:09 +0000 (11:28 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 May 2017 09:53:41 +0000 (11:53 +0200)
commit57e9a17438bc1ce2cf4fc64b2f94383ccff6087a
treee8b6d757124e553362e80295d5aed583f5e12d23
parentf186dbb6448678f7ad270f6f32d49008c44c8212
kvm: nVMX: Validate CR3 target count on nested VM-entry

According to the SDM, the CR3-target count must not be greater than
4. Future processors may support a different number of CR3-target
values. Software should read the VMX capability MSR IA32_VMX_MISC to
determine the number of values supported.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c