Re: [Qemu-devel] [PATCH for-2.5] virtio-9p: use QEMU thread pool

2015-11-27 Thread Greg Kurz
On Fri, 27 Nov 2015 14:08:47 +0100 Paolo Bonzini wrote: > > > On 27/11/2015 13:42, Greg Kurz wrote: > > On Fri, 27 Nov 2015 12:43:06 +0100 > > Paolo Bonzini wrote: > > > >> The QEMU thread pool already has a mechanism to invoke callbacks in the > >> main > >> thread. It does not need an Eve

Re: [Qemu-devel] [PATCH for-2.5] virtio-9p: use QEMU thread pool

2015-11-27 Thread Paolo Bonzini
On 27/11/2015 13:42, Greg Kurz wrote: > On Fri, 27 Nov 2015 12:43:06 +0100 > Paolo Bonzini wrote: > >> 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 + GThr

Re: [Qemu-devel] [PATCH for-2.5] virtio-9p: use QEMU thread pool

2015-11-27 Thread Greg Kurz
On Fri, 27 Nov 2015 12:43:06 +0100 Paolo Bonzini wrote: > 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 silence

[Qemu-devel] [PATCH for-2.5] virtio-9p: use QEMU thread pool

2015-11-27 Thread Paolo Bonzini
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_not