]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:25 +0000 (16:45 +0100)
commit65931e6cd4f5b89a657268b17dd30e9e034e4148
tree2c5afb2494b75fd1d45a057ddca89ac9c1f7aef5
parent75ef7bf39e8cbc9cfec47af09799abcb14f8c85a
kvm: nVMX: VMWRITE checks unsupported field before read-only field

commit 693e02cc24090c379217138719d9d84e50036b24 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c