kvm: nVMX: Fix fault vector for VMX operation at CPL > 0
authorJim Mattson <jmattson@google.com>
Fri, 27 Jul 2018 16:18:50 +0000 (09:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:08 +0000 (17:59 +0200)
commit36090bf43a6b835a42f515cb515ff6fa293a25fe
tree4a610426c9bc09d6806e3748c86461da67afdcdf
parentb9b33da2aa7429b0f61bcd218d34e1a277459fb4
kvm: nVMX: Fix fault vector for VMX operation at CPL > 0

The fault that should be raised for a privilege level violation is #GP
rather than #UD.

Fixes: 727ba748e110b4 ("kvm: nVMX: Enforce cpl=0 for VMX instructions")
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