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)
commit68efa764f3429f2bd71f431e91c04b0bcb7d34f1
treebc0a388fb542ff2c634722863dfa72a521b6dd7d
parent10e38fc7cabc668738e6a7b7b57cbcddb2234440
KVM: x86: Emulator support for #UD on CPL>0

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