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)
> 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
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
> /* 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
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
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
==
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