Re: [Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-07-08 Thread Stefan Hajnoczi
On Wed, Jul 08, 2015 at 09:15:57AM +0800, Fam Zheng wrote: > On Tue, 07/07 15:35, Stefan Hajnoczi wrote: > > On Tue, Jun 30, 2015 at 09:19:44PM +0800, Fam Zheng wrote: > > > diff --git a/async.c b/async.c > > > index 06971f4..1d70cfd 100644 > > > --- a/async.c > > > +++ b/async.c > > > @@ -290,12 +

Re: [Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-07-07 Thread Fam Zheng
On Tue, 07/07 15:35, Stefan Hajnoczi wrote: > On Tue, Jun 30, 2015 at 09:19:44PM +0800, Fam Zheng wrote: > > diff --git a/async.c b/async.c > > index 06971f4..1d70cfd 100644 > > --- a/async.c > > +++ b/async.c > > @@ -290,12 +290,17 @@ AioContext *aio_context_new(Error **errp) > > { > > int r

Re: [Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-07-07 Thread Stefan Hajnoczi
On Tue, Jun 30, 2015 at 09:19:44PM +0800, Fam Zheng wrote: > diff --git a/async.c b/async.c > index 06971f4..1d70cfd 100644 > --- a/async.c > +++ b/async.c > @@ -290,12 +290,17 @@ AioContext *aio_context_new(Error **errp) > { > int ret; > AioContext *ctx; > +Error *local_err = NULL;

[Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-06-30 Thread Fam Zheng
This is the place to initialize OS specific bits of AioContext. Signed-off-by: Fam Zheng --- aio-posix.c | 4 aio-win32.c | 4 async.c | 15 --- include/block/aio.h | 3 +++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/aio-p