[Qemu-devel] [PATCH 07/20] block: introduce BDRV_POLL_WHILE

2016-10-27 Thread Paolo Bonzini
We want the BDS event loop to run exclusively in the iothread that owns the BDS's AioContext. This macro will provide the synchronization between the two event loops; for now it just wraps the common idiom of a while loop around aio_poll. Signed-off-by: Paolo Bonzini --- block/block-backend.c |

[Qemu-devel] [PATCH 07/20] block: introduce BDRV_POLL_WHILE

2016-10-17 Thread Paolo Bonzini
We want the BDS event loop to run exclusively in the iothread that owns the BDS's AioContext. This macro will provide the synchronization between the two event loops; for now it just wraps the common idiom of a while loop around aio_poll. Signed-off-by: Paolo Bonzini --- v1->v2: make mac