Re: [Qemu-devel] [PATCH v3 09/10] aio: convert aio_poll() to g_poll(3)

2013-02-07 Thread Stefan Hajnoczi
On Wed, Feb 06, 2013 at 10:05:15PM +0100, Laszlo Ersek wrote: > comments in-line > > On 02/04/13 13:12, Stefan Hajnoczi wrote: > > AioHandler already has a GPollFD so we can directly use its > > events/revents. > > > > Add the int pollfds_idx field to AioContext so we can map g_poll(3) > > results

Re: [Qemu-devel] [PATCH v3 09/10] aio: convert aio_poll() to g_poll(3)

2013-02-06 Thread Laszlo Ersek
comments in-line On 02/04/13 13:12, Stefan Hajnoczi wrote: > AioHandler already has a GPollFD so we can directly use its > events/revents. > > Add the int pollfds_idx field to AioContext so we can map g_poll(3) > results back to AioHandlers. > > Reuse aio_dispatch() to invoke handlers after g_poll

[Qemu-devel] [PATCH v3 09/10] aio: convert aio_poll() to g_poll(3)

2013-02-04 Thread Stefan Hajnoczi
AioHandler already has a GPollFD so we can directly use its events/revents. Add the int pollfds_idx field to AioContext so we can map g_poll(3) results back to AioHandlers. Reuse aio_dispatch() to invoke handlers after g_poll(3). Signed-off-by: Stefan Hajnoczi --- aio-posix.c | 67