]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9795b025aee4e0d88c14e3d470e92877bf84a641
tree641d185defc160ef7e90c37976981915854a9d15
parenta38c084f826d37222d956cd093104ff0f1073d41
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: d09cec77230b7 ("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