kvm: nVMX: Reorder error checks for emulated VMXON
authorJim Mattson <jmattson@google.com>
Thu, 22 Dec 2016 23:49:55 +0000 (15:49 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:48:04 +0000 (14:48 +0100)
commit21e7fbe7db2a983c046a05f12419d88c554a0f5a
treeada5e49533415046a1e1c5fe2ad07e7b4172a6c6
parent4d82d12b39132e820b9ac4aa058ccc733db98917
kvm: nVMX: Reorder error checks for emulated VMXON

Checks on the operand to VMXON are performed after the check for
legacy mode operation and the #GP checks, according to the pseudo-code
in Intel's SDM.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c