From 249aa745fb133be47d3fea1cdecec55af7589919 Mon Sep 17 00:00:00 2001 From: aliguori Date: Mon, 26 Jan 2009 17:17:52 +0000 Subject: qemu iovec: keep track of total size, allow partial copies (Gerd Hoffman) Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6448 c046a42c-6fe2-441c-8c8c-71466251a162 --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block.c') diff --git a/block.c b/block.c index 50ec589..b3d2f12 100644 --- a/block.c +++ b/block.c @@ -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); -- cgit v1.1