virtio-9p: use QEMU thread pool
commitebac1202c95a4f1b76b6ef3f0f63926fa76e753e
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Nov 2015 11:43:06 +0000 (27 12:43 +0100)
committerGreg Kurz <gkurz@linux.vnet.ibm.com>
Mon, 30 Nov 2015 11:36:12 +0000 (30 12:36 +0100)
treedade9efdf1badf5572f9738601b2c4d64f9c97a7
parent49f817caaf4460f4a8dfca190f31a57569fc9efe
virtio-9p: use QEMU thread pool

The QEMU thread pool already has a mechanism to invoke callbacks in the main
thread.  It does not need an EventNotifier and it is more efficient too.
Use it instead of GAsyncQueue + GThreadPool + glue.

As a side effect, it silences Coverity's complaint about an unchecked
return value for event_notifier_init.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
(removed no more needed #include <glib.h> from virtio-9p-coth.h)
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-coth.c
hw/9pfs/virtio-9p-coth.h
hw/9pfs/virtio-9p-device.c