Re: [PATCHv5 1/4] Provide userspace IO exit completion callback.

2012-08-05 Thread Gleb Natapov
On Thu, Aug 02, 2012 at 04:26:29PM -0300, Marcelo Tosatti wrote: > On Mon, Jul 30, 2012 at 05:38:18PM +0300, Gleb Natapov wrote: > > int r; > > @@ -5554,9 +5568,13 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, > > struct kvm_run *kvm_run) > > } > > } > > > > - r = c

Re: [PATCHv5 1/4] Provide userspace IO exit completion callback.

2012-08-02 Thread Marcelo Tosatti
On Mon, Jul 30, 2012 at 05:38:18PM +0300, Gleb Natapov wrote: > int r; > @@ -5554,9 +5568,13 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, > struct kvm_run *kvm_run) > } > } > > - r = complete_mmio(vcpu); > - if (r <= 0) > - goto out; > +

[PATCHv5 1/4] Provide userspace IO exit completion callback.

2012-07-30 Thread Gleb Natapov
Current code assumes that IO exit was due to instruction emulation and handles execution back to emulator directly. This patch adds new userspace IO exit completion callback that can be set by any other code that caused IO exit to userspace. Signed-off-by: Gleb Natapov --- arch/x86/include/asm/k