]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-win32.c
block/raw-win32: implement .bdrv_detach/attach_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:50 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:12 +0000 (09:56 +0200)
commit85ebd381fdae2d551cd6a0ffff47ab08734edf12
tree046ca8f1cc3b05cf1c25015690c07610479930a6
parent99cc598924d9686e497fa9ddd7889d6be27f3084
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>
block/raw-aio.h
block/raw-win32.c
block/win32-aio.c