]> git.proxmox.com Git - mirror_qemu.git/commit
vdi: leave bounce buffering to block layer
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Mar 2012 17:07:49 +0000 (18:07 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:40 +0000 (14:54 +0200)
commita7a43aa199571a336b76a9a9310c95476c6dc5c4
treef815b983cdbcddca95bffad99bbf4bb2cffbec6f
parentbfc45fc183619eb4f76e3979598a510f41cd88e3
vdi: leave bounce buffering to block layer

vdi.c really works as if it implemented bdrv_read and bdrv_write.  However,
because only vector I/O is supported by the asynchronous callbacks, it
went through extra pain to bounce-buffer the I/O.  This can be handled
by the block layer now that the format is coroutine-based.

Acked-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vdi.c