]> 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)
commiteaa74d294e82aa529f7fb868f99c4f5eb35bb680
treee8b6d757124e553362e80295d5aed583f5e12d23
parenta1bca24ac66297f1fcaacd0f71e2421b491169ea
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