]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25c9b051c2ad1b61e6f3d95965f246336304634b
treeada5e49533415046a1e1c5fe2ad07e7b4172a6c6
parentf6af232f10889e3b4d87a05b8eb4a36f234c2b4a
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