KVM: x86: Emulator support for #UD on CPL>0
authorNadav Amit <namit@cs.technion.ac.il>
Wed, 18 Jun 2014 14:19:35 +0000 (17:19 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jul 2014 07:14:05 +0000 (09:14 +0200)
Certain instructions (e.g., mwait and monitor) cause a #UD exception when they
are executed in user mode. This is in contrast to the regular privileged
instructions which cause #GP. In order not to mess with SVM interception of
mwait and monitor which assumes privilege level assertions take place before
interception, a flag has been added.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c

Simple merge