diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2012-11-22 16:06:06 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-01-02 15:58:09 +0100 |
commit | 530c0bbd73e1b658c9266582072847de1fbdff10 (patch) | |
tree | 0bfc3c86db76b8965464568a1846a26320ab8cc6 /hw/virtio-blk.c | |
parent | 8962e44fe438a051aff9f43209363f599be33624 (diff) |
iov: add qemu_iovec_concat_iov()
The qemu_iovec_concat() function copies a subset of a QEMUIOVector. The
new qemu_iovec_concat_iov() function does the same for a iov/cnt pair.
It is easy to define qemu_iovec_concat() in terms of
qemu_iovec_concat_iov(). The existing code is mostly unchanged, except
for the assertion src->size >= soffset, which cannot be efficiently
checked upfront on a iov/cnt pair. Instead we assert upon hitting the
end of src with an unsatisfied soffset.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/virtio-blk.c')
0 files changed, 0 insertions, 0 deletions