aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-08-02 05:47:51 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:50:29 -0400
commit4fc40f076f4fa289dd546990b597351c9cdad985 (patch)
tree589e394aee1efb859a398438ced6326a5df3f97e /arch/x86/kvm/x86.c
parent9928ff608b1b6ba10fafde85f57970a83a181331 (diff)
KVM: x86 emulator: check io permissions only once for string pio
Do not recheck io permission on every iteration. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3cbe8032394..35c0f4e4a62 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3997,6 +3997,7 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
3997 memcpy(c->regs, vcpu->arch.regs, sizeof c->regs); 3997 memcpy(c->regs, vcpu->arch.regs, sizeof c->regs);
3998 vcpu->arch.emulate_ctxt.interruptibility = 0; 3998 vcpu->arch.emulate_ctxt.interruptibility = 0;
3999 vcpu->arch.emulate_ctxt.exception = -1; 3999 vcpu->arch.emulate_ctxt.exception = -1;
4000 vcpu->arch.emulate_ctxt.perm_ok = false;
4000 4001
4001 r = x86_decode_insn(&vcpu->arch.emulate_ctxt); 4002 r = x86_decode_insn(&vcpu->arch.emulate_ctxt);
4002 trace_kvm_emulate_insn_start(vcpu); 4003 trace_kvm_emulate_insn_start(vcpu);