Re: [Qemu-devel] [PULL v2 5/7] aio: Introduce aio-epoll.c

2015-11-16 Thread Fam Zheng
On Fri, 11/13 18:09, Paolo Bonzini wrote: > > +static void aio_epoll_update(AioContext *ctx, AioHandler *node, bool > > is_new) > > +{ > > +struct epoll_event event; > > +int r; > > + > > +if (!ctx->epoll_enabled) { > > +return; > > +} > > +if (!node->pfd.events) { > >

Re: [Qemu-devel] [PULL v2 5/7] aio: Introduce aio-epoll.c

2015-11-13 Thread Paolo Bonzini
On 09/11/2015 11:08, Stefan Hajnoczi wrote: > From: Fam Zheng > > To minimize code duplication, epoll is hooked into aio-posix's > aio_poll() instead of rolling its own. This approach also has both > compile-time and run-time switchability. > > 1) When QEMU starts with a small number of fds in

[Qemu-devel] [PULL v2 5/7] aio: Introduce aio-epoll.c

2015-11-09 Thread Stefan Hajnoczi
From: Fam Zheng To minimize code duplication, epoll is hooked into aio-posix's aio_poll() instead of rolling its own. This approach also has both compile-time and run-time switchability. 1) When QEMU starts with a small number of fds in the event loop, ppoll is used. 2) When QEMU starts with a