virtio: introduce virtqueue_unmap_sg()
authorJason Wang <jasowang@redhat.com>
Fri, 25 Sep 2015 05:21:28 +0000 (13:21 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Oct 2015 18:40:18 +0000 (13:40 -0500)
commita64d4cafa9dedad93da475f2f1e41133f433be67
treef59c6d4c7bf08690ff5c1ca7495394f42672b19a
parent2f99c80963658b491d2f5fb98e6e602dd8d9ede2
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>
(cherry picked from commit ce317461573bac12b10d67699b4ddf1f97cf066c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio.c