diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-05-08 16:34:50 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-06-04 09:56:12 +0200 |
commit | 85ebd381fdae2d551cd6a0ffff47ab08734edf12 (patch) | |
tree | 046ca8f1cc3b05cf1c25015690c07610479930a6 /block/raw-aio.h | |
parent | 99cc598924d9686e497fa9ddd7889d6be27f3084 (diff) |
block/raw-win32: implement .bdrv_detach/attach_aio_context()
Drop the assumption that we're using the main AioContext for raw-win32.
Convert the aio-win32 code to support detach/attach and replace
qemu_aio_wait() with aio_poll().
The .bdrv_detach/attach_aio_context() interfaces move the aio-win32
event notifier from the old to the new AioContext.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/raw-aio.h')
-rw-r--r-- | block/raw-aio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/raw-aio.h b/block/raw-aio.h index 6269f3df86..8cf084eeb5 100644 --- a/block/raw-aio.h +++ b/block/raw-aio.h @@ -51,6 +51,10 @@ BlockDriverAIOCB *win32_aio_submit(BlockDriverState *bs, QEMUWin32AIOState *aio, HANDLE hfile, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type); +void win32_aio_detach_aio_context(QEMUWin32AIOState *aio, + AioContext *old_context); +void win32_aio_attach_aio_context(QEMUWin32AIOState *aio, + AioContext *new_context); #endif #endif /* QEMU_RAW_AIO_H */ |