summary refs log tree commit diff stats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-03-29 10:31:31 +0100
committerKevin Wolf <kwolf@redhat.com>2012-04-19 16:03:27 +0200
commite82dabd82e7a8ce0294bce829b3d2dd25eb3a514 (patch)
tree23323a335733668cc2f7214905b7d27b8481282b /qemu-io.c
parentbef0fd5958120542f126f2dedbfce65d8839a94d (diff)
downloadfocaccia-qemu-e82dabd82e7a8ce0294bce829b3d2dd25eb3a514.tar.gz
focaccia-qemu-e82dabd82e7a8ce0294bce829b3d2dd25eb3a514.zip
ide: convert ide_sector_write() to asynchronous I/O
The IDE PIO write sector code path uses bdrv_write() and hence can make
the guest unresponsive while the I/O request is in progress.  This patch
converts ide_sector_write() to use bdrv_aio_writev() by using the
BUSY_STAT bit to tell the guest that the request is in progress.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Tested-by: Richard Davies <richard@arachsys.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions