]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Set VM instruction error for VMPTRLD of unbacked page
authorJim Mattson <jmattson@google.com>
Wed, 15 Mar 2017 14:40:55 +0000 (07:40 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 11:55:46 +0000 (12:55 +0100)
commit47446972942bdbd733707c79fedad3fcfe244375
tree571227308aa6ecedc77e8f75d2580f7e5c9a2d67
parentfec14eb7f6e8e36634009afdc8e1431c7e775a14
kvm: nVMX: Set VM instruction error for VMPTRLD of unbacked page

It is never correct for a VMX instruction to fail with "invalid VMCS"
if there is, in fact, a current VMCS. Reads from unbacked addresses
return all 1's, which means that an unbacked VMCS will not have the
correct VMCS revision ID (i.e. VMCS12_REVISION).

Fixes: 0b3f16e4a905b ("KVM: nVMX: Implement VMPTRLD")
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c