Re: [Qemu-devel] [PATCH] iohandler: Use aio API

2015-09-09 Thread Stefan Hajnoczi
On Mon, Sep 07, 2015 at 11:28:58AM +0800, Fam Zheng wrote: > iohandler.c shares the same interface with aio, but with duplicated > code. It's better to rebase iohandler, also because that aio is a > more friendly interface to multi-threads. > > Create a global AioContext instance and let its GSour

[Qemu-devel] [PATCH] iohandler: Use aio API

2015-09-06 Thread Fam Zheng
iohandler.c shares the same interface with aio, but with duplicated code. It's better to rebase iohandler, also because that aio is a more friendly interface to multi-threads. Create a global AioContext instance and let its GSource handle the iohandler events. Signed-off-by: Fam Zheng --- inclu