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)
commitc7c2c709b60ed2d7e6e6871496f0e963cfad121f
treee8b6d757124e553362e80295d5aed583f5e12d23
parent4415b335282591e76762cd9e6dc60932a7595fc3
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