kvm: nVMX: Fix fault priority for VMX operations
commite49fcb8b9ef26dfb2d02b173d790e1ef41177121
authorJim Mattson <jmattson@google.com>
Fri, 27 Jul 2018 20:44:45 +0000 (27 13:44 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:09 +0000 (6 17:59 +0200)
treeae7491b29cb6d6eb03afc423a440dcae31e38156
parent36090bf43a6b835a42f515cb515ff6fa293a25fe
kvm: nVMX: Fix fault priority for VMX operations

When checking emulated VMX instructions for faults, the #UD for "IF
(not in VMX operation)" should take precedence over the #GP for "ELSIF
CPL > 0."

Suggested-by: Eric Northup <digitaleric@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c