]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio.c
virtio: introduce virtqueue_unmap_sg()
authorJason Wang <jasowang@redhat.com>
Fri, 25 Sep 2015 05:21:28 +0000 (13:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Oct 2015 13:16:52 +0000 (16:16 +0300)
commitce317461573bac12b10d67699b4ddf1f97cf066c
treeec14f3e0461544014c605b01adf45989cb70fc77
parentfa500928ad9da6dd570918e3dfca13c029af07a8
virtio: introduce virtqueue_unmap_sg()

Factor out sg unmapping logic. This will be reused by the patch that
can discard descriptor.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Andrew James <andrew.james@hpe.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c