Statistics
| Branch: | Revision:

root / block / win32-aio.c @ 34b5d2c6

History | View | Annotate | Download (5.7 kB)

# Date Author Comment
b10577df 08/22/2013 11:05 pm Stefan Hajnoczi

win32-aio: drop win32_aio_flush_cb()

The io_flush argument to qemu_aio_set_event_notifier() has been removed
since the block layer learnt to drain requests by itself. Fix the
Windows build for win32-aio.o by updating the
qemu_aio_set_event_notifier() call and dropping win32_aio_flush_cb()....

ce3a4718 05/18/2013 03:35 pm Qiao Nuohan

Remove twice include of qemu-common.h

This patch is used to remove twice include of "qemu-common.h" in
block/win32-aio.c

Signed-off-by: Qiao Nuohan <>
Reviewed-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

3249dbe6 01/18/2013 10:57 am Michael Tokarev

win32-aio: use iov utility functions instead of open-coding them

We have iov_from_buf() and iov_to_buf(), use them instead of
open-coding these in block/win32-aio.c

Signed-off-by: Stefan Hajnoczi <>

e8bccad5 01/17/2013 11:58 am Kevin Wolf

win32-aio: Fix memory leak

The buffer is allocated for both reads and writes, and obviously it
should be freed even if an error occurs.

Cc:
Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

bcbbd234 01/17/2013 11:57 am Kevin Wolf

win32-aio: Fix vectored reads

Copying data in the right direction really helps a lot!

Cc:
Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

7479acdb 01/15/2013 05:47 pm Markus Armbruster

win32-aio: Fix how win32_aio_process_completion() frees buffer

win32_aio_submit() allocates it with qemu_blockalign(), therefore it
must be freed with qemu_vfree(), not g_free().

Signed-off-by: Markus Armbruster <>
Reviewed-by: Kevin Wolf <>...

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

cee40d2d 11/14/2012 07:19 pm Stefan Weil

block: Workaround for older versions of MinGW gcc

Versions before gcc-4.6 don't support unnamed fields in initializers
(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676).

Offset and OffsetHigh belong to an unnamed struct which is part of an
unnamed union. Therefore the original code does not work with older...

d7331bed 11/14/2012 07:19 pm Stefan Hajnoczi

aio: rename AIOPool to AIOCBInfo

Now that AIOPool no longer keeps a freelist, it isn't really a "pool"
anymore. Rename it to AIOCBInfo and make it const since it no longer
needs to be modified.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

a2736526 10/31/2012 11:38 am Paolo Bonzini

raw-win32: implement native asynchronous I/O

With the new support for EventNotifiers in the AIO event loop, we
can hook a completion port to every opened file and use asynchronous
I/O on them.

Wine's support is extremely inefficient, also because it really does...