KVM: x86 emulator: Check CPL level during privilege instruction emulation
authorGleb Natapov <gleb@redhat.com>
Wed, 10 Feb 2010 12:21:35 +0000 (14:21 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:11 +0000 (12:36 -0300)
commite92805ac1228626c59c865f2f4e9059b9fb8c97b
treeeb8d8c960ecd31649b9ae95e14ed7cc65c0d06c8
parentd4c6a1549c056f1d817e8f6f2f97d8b44933472f
KVM: x86 emulator: Check CPL level during privilege instruction emulation

Add CPL checking in case emulator is tricked into emulating
privilege instruction from userspace.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c