From ceb42de899e068d10f104d570c3fb3b36ec8e8d6 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 7 Apr 2009 18:43:28 +0000 Subject: native preadv/pwritev support (Christoph Hellwig) This ties up the preadv/pwritev syscalls to qemu if they are declared in unistd.h. This is the case currently on at least NetBSD and OpenBSD and will hopefully soon be the case on Linux. Thanks to Blue Swirl and Gerd Hoffmann for the configure autodetection of preadv/pwritev. Signed-off-by: Christoph Hellwig Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7021 c046a42c-6fe2-441c-8c8c-71466251a162 --- block.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'block.c') diff --git a/block.c b/block.c index 8a78f14..74d19ad 100644 --- a/block.c +++ b/block.c @@ -1354,10 +1354,9 @@ static void bdrv_aio_bh_cb(void *opaque) { BlockDriverAIOCBSync *acb = opaque; - qemu_vfree(acb->bounce); - if (!acb->is_write) qemu_iovec_from_buffer(acb->qiov, acb->bounce, acb->qiov->size); + qemu_vfree(acb->bounce); acb->common.cb(acb->common.opaque, acb->ret); qemu_aio_release(acb); -- cgit v1.1