Re: [Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-26 Thread Anthony Liguori
On 03/26/2010 10:23 AM, Paul Brook wrote: On Thu, Mar 25, 2010 at 09:06:00PM +, Paul Brook wrote: /* Force QEMU to process pending events */ -void qemu_notify_event(void); +void qemu_notify_event(QEMUIOWorker *worker); static void handle_input(VirtIODevice *vdev, VirtQueue *vq)

Re: [Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-26 Thread Paul Brook
> On Thu, Mar 25, 2010 at 09:06:00PM +, Paul Brook wrote: > > > /* Force QEMU to process pending events */ > > > -void qemu_notify_event(void); > > > +void qemu_notify_event(QEMUIOWorker *worker); > > > > > > static void handle_input(VirtIODevice *vdev, VirtQueue *vq) > > > { > > > +qemu

Re: [Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-25 Thread Marcelo Tosatti
On Thu, Mar 25, 2010 at 09:06:00PM +, Paul Brook wrote: > > /* Force QEMU to process pending events */ > > -void qemu_notify_event(void); > > +void qemu_notify_event(QEMUIOWorker *worker); > > > static void handle_input(VirtIODevice *vdev, VirtQueue *vq) > > { > > +qemu_notify_event(mai

Re: [Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-25 Thread Paul Brook
> /* Force QEMU to process pending events */ > -void qemu_notify_event(void); > +void qemu_notify_event(QEMUIOWorker *worker); > static void handle_input(VirtIODevice *vdev, VirtQueue *vq) > { > +qemu_notify_event(main_io_worker); > } This feels completely wrong. Devices shouldn't know o

[Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-25 Thread Marcelo Tosatti
This can be used later to introduce generic iothread workers. Signed-off-by: Marcelo Tosatti Index: qemu-ioworker/async.c === --- qemu-ioworker.orig/async.c +++ qemu-ioworker/async.c @@ -180,7 +180,7 @@ void qemu_bh_schedule(QEMUBH

Re: [Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-22 Thread Anthony Liguori
On 03/11/2010 08:45 PM, Marcelo Tosatti wrote: This can be used later to introduce generic iothread workers. Signed-off-by: Marcelo Tosatti Could you rebase this? It failed to apply in a strange way that made me nervous... Regards, Anthony Liguori Index: qemu-ioworker/async.c ==

[Qemu-devel] [patch 1/2] Pass QEMUIOWorker to qemu_notify_event

2010-03-11 Thread Marcelo Tosatti
This can be used later to introduce generic iothread workers. Signed-off-by: Marcelo Tosatti Index: qemu-ioworker/async.c === --- qemu-ioworker.orig/async.c +++ qemu-ioworker/async.c @@ -180,7 +180,7 @@ void qemu_bh_schedule(QEMUBH