diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-02-10 07:21:33 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:36:11 -0500 |
commit | f850e2e603bf5a05b0aee7901857cf85715aa694 (patch) | |
tree | d3c841530a11187bbe70b36bf4b9bca97bf7dd64 /arch/x86/include | |
parent | 1871c6020d7308afb99127bba51f04548e7ca84e (diff) |
KVM: x86 emulator: Check IOPL level during io instruction emulation
Make emulator check that vcpu is allowed to execute IN, INS, OUT,
OUTS, CLI, STI.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index c07c16f64015..f9a2f66530cf 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -678,6 +678,7 @@ void kvm_disable_tdp(void); | |||
678 | 678 | ||
679 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); | 679 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); |
680 | int complete_pio(struct kvm_vcpu *vcpu); | 680 | int complete_pio(struct kvm_vcpu *vcpu); |
681 | bool kvm_check_iopl(struct kvm_vcpu *vcpu); | ||
681 | 682 | ||
682 | struct kvm_memory_slot *gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn); | 683 | struct kvm_memory_slot *gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn); |
683 | 684 | ||