Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-09 Thread Marcelo Tosatti
On Tue, Feb 09, 2010 at 08:38:56AM +0200, Avi Kivity wrote: On 02/09/2010 12:41 AM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 11:46:25PM +0200, Avi Kivity wrote: On 02/04/2010 11:36 PM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-08 Thread Marcelo Tosatti
On Thu, Feb 04, 2010 at 11:46:25PM +0200, Avi Kivity wrote: On 02/04/2010 11:36 PM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-08 Thread Avi Kivity
On 02/09/2010 12:41 AM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 11:46:25PM +0200, Avi Kivity wrote: On 02/04/2010 11:36 PM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-04 Thread Avi Kivity
On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Is this strictly needed? If we teach qemu to migrate before executing the pio request, I think we'll be all right? should work at

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-04 Thread Marcelo Tosatti
On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Is this strictly needed? If we teach qemu to migrate before executing the

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-04 Thread Avi Kivity
On 02/04/2010 11:36 PM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Is this

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-04 Thread Marcelo Tosatti
On Thu, Feb 04, 2010 at 11:46:25PM +0200, Avi Kivity wrote: On 02/04/2010 11:36 PM, Marcelo Tosatti wrote: On Thu, Feb 04, 2010 at 09:16:47PM +0200, Avi Kivity wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to

Re: [patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-02-04 Thread Marcelo Tosatti
On Thu, Feb 04, 2010 at 08:12:07PM -0200, Marcelo Tosatti wrote: On 01/28/2010 09:03 PM, Marcelo Tosatti wrote: A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Is this strictly needed? If we teach qemu to migrate before

[patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-01-28 Thread Marcelo Tosatti
A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Add ioctls to get/set the PIO state. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/arch/x86/include/asm/kvm.h b/arch/x86/include/asm/kvm.h index f46b79f..c1b2b8c 100644