Re: [Qemu-devel] [PATCH 06/22] curl: implement .bdrv_detach/attach_aio_context()

2014-05-05 Thread Stefan Hajnoczi
On Sun, May 04, 2014 at 07:00:26PM +0800, Fam Zheng wrote: > On Thu, 05/01 16:54, Stefan Hajnoczi wrote: > > The curl block driver uses fd handlers, timers, and BHs. The fd > > handlers and timers are managed on behalf of libcurl, which controls > > them using callback functions that the block dri

Re: [Qemu-devel] [PATCH 06/22] curl: implement .bdrv_detach/attach_aio_context()

2014-05-04 Thread Fam Zheng
On Thu, 05/01 16:54, Stefan Hajnoczi wrote: > The curl block driver uses fd handlers, timers, and BHs. The fd > handlers and timers are managed on behalf of libcurl, which controls > them using callback functions that the block driver implements. > > The simplest way to implement .bdrv_detach/att

[Qemu-devel] [PATCH 06/22] curl: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
The curl block driver uses fd handlers, timers, and BHs. The fd handlers and timers are managed on behalf of libcurl, which controls them using callback functions that the block driver implements. The simplest way to implement .bdrv_detach/attach_aio_context() is to clean up libcurl in the old ev