kvm: nVMX: VMWRITE checks unsupported field before read-only field
authorJim Mattson <jmattson@google.com>
Fri, 6 Dec 2019 23:46:36 +0000 (15:46 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 17:16:00 +0000 (18:16 +0100)
commit693e02cc24090c379217138719d9d84e50036b24
tree641d185defc160ef7e90c37976981915854a9d15
parentdd2d6042b7f4a5440705b4ffc6c4c2dba81a43b7
kvm: nVMX: VMWRITE checks unsupported field before read-only field

According to the SDM, VMWRITE checks to see if the secondary source
operand corresponds to an unsupported VMCS field before it checks to
see if the secondary source operand corresponds to a VM-exit
information field and the processor does not support writing to
VM-exit information fields.

Fixes: 49f705c5324aa ("KVM: nVMX: Implement VMREAD and VMWRITE")
Signed-off-by: Jim Mattson <jmattson@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Reviewed-by: Jon Cargille <jcargill@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c