Re: [PATCHv2] KVM: x86 emulator: check io permissions only once for string pio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On 08/02/2010 12:47 PM, Gleb Natapov wrote:

Do not recheck io permission on every iteration.


Applied, thanks.

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c5878d8..e7e3b50 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3997,6 +3997,7 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
  		memcpy(c->regs, vcpu->arch.regs, sizeof c->regs);
  		vcpu->arch.emulate_ctxt.interruptibility = 0;
  		vcpu->arch.emulate_ctxt.exception = -1;
+		vcpu->arch.emulate_ctxt.perm_ok = false;


This should be in x86_decode_init(), not outside the emulator. I'll convert it in my next series.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux