mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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 <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7021 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f141eafe28
commit
ceb42de899
3 changed files with 101 additions and 4 deletions
3
block.c
3
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue