]> asedeno.scripts.mit.edu Git - linux.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)
commitfca91f6d60b6ee53b8d43c8ad5bad153a758961c
tree571227308aa6ecedc77e8f75d2580f7e5c9a2d67
parent14aa61d0a9eb3ddad06c3a0033f88b5fa7f05613
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: 63846663eac78 ("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