]> 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)
commit00113fbc97bd0a070ff3391b331e7f3246a99a9b
tree641d185defc160ef7e90c37976981915854a9d15
parent5d5f9ceba33cb7000fc57c346d51a0a09e9ab2ab
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: 03a08d915eaa2 ("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