KVM: x86 emulator: Check IOPL level during io instruction emulation
authorGleb Natapov <gleb@redhat.com>
Fri, 19 Mar 2010 14:47:32 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:20 +0000 (07:41 -0700)
commitf6eb212e6056e62841e347e141285aed8920a731
tree995e502a73332429e9a8af39edb6485d936d165b
parent2f4415466842f786b38bd28dcaf7c85b2f7a9c8f
KVM: x86 emulator: Check IOPL level during io instruction emulation

commit f850e2e603bf5a05b0aee7901857cf85715aa694 upstream

Make emulator check that vcpu is allowed to execute IN, INS, OUT,
OUTS, CLI, STI.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c