summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-06-04 18:15:14 +0200
committerStefan Hajnoczi2019-08-27 15:58:42 +0200
commit5396234b96a2ac743f48644529771498e036e698 (patch)
tree23744dbb57772a28809c6da3eb55a344563a445e /include/qemu
parentblock/qcow2: implement .bdrv_co_preadv_part (diff)
downloadqemu-5396234b96a2ac743f48644529771498e036e698.tar.gz
qemu-5396234b96a2ac743f48644529771498e036e698.tar.xz
qemu-5396234b96a2ac743f48644529771498e036e698.zip
block/qcow2: implement .bdrv_co_pwritev(_compressed)_part
Implement and use new interface to get rid of hd_qiov. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190604161514.262241-13-vsementsov@virtuozzo.com Message-Id: <20190604161514.262241-13-vsementsov@virtuozzo.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/iov.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/iov.h b/include/qemu/iov.h
index 29957c8a72..bffc151282 100644
--- a/include/qemu/iov.h
+++ b/include/qemu/iov.h
@@ -206,6 +206,7 @@ void qemu_iovec_init_extended(
void *tail_buf, size_t tail_len);
void qemu_iovec_init_slice(QEMUIOVector *qiov, QEMUIOVector *source,
size_t offset, size_t len);
+int qemu_iovec_subvec_niov(QEMUIOVector *qiov, size_t offset, size_t len);
void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len);
void qemu_iovec_concat(QEMUIOVector *dst,
QEMUIOVector *src, size_t soffset, size_t sbytes);