summary refs log tree commit diff stats
path: root/hw/kvm/pci-assign.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2012-11-22 16:06:06 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-01-02 15:58:09 +0100
commit530c0bbd73e1b658c9266582072847de1fbdff10 (patch)
tree0bfc3c86db76b8965464568a1846a26320ab8cc6 /hw/kvm/pci-assign.c
parent8962e44fe438a051aff9f43209363f599be33624 (diff)
downloadfocaccia-qemu-530c0bbd73e1b658c9266582072847de1fbdff10.tar.gz
focaccia-qemu-530c0bbd73e1b658c9266582072847de1fbdff10.zip
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/kvm/pci-assign.c')
0 files changed, 0 insertions, 0 deletions