diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 17:17:52 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 17:17:52 +0000 |
commit | 249aa745fb133be47d3fea1cdecec55af7589919 (patch) | |
tree | 446b9a11fab7ca27a7da9adc3a8a010553a9c37e /block.c | |
parent | 28c699a2b650caa3bf7410b7960198572c9ddf3c (diff) | |
download | qemu-249aa745fb133be47d3fea1cdecec55af7589919.zip qemu-249aa745fb133be47d3fea1cdecec55af7589919.tar.gz qemu-249aa745fb133be47d3fea1cdecec55af7589919.tar.bz2 |
qemu iovec: keep track of total size, allow partial copies (Gerd Hoffman)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6448 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1265,7 +1265,7 @@ static void bdrv_aio_rw_vector_cb(void *opaque, int ret) VectorTranslationState *s = opaque; if (!s->is_write) { - qemu_iovec_from_buffer(s->iov, s->bounce); + qemu_iovec_from_buffer(s->iov, s->bounce, s->iov->size); } qemu_free(s->bounce); s->this_aiocb->cb(s->this_aiocb->opaque, ret); |