]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtio: switch to virtio_map
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 27 Oct 2015 08:09:16 +0000 (10:09 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 29 Oct 2015 09:05:24 +0000 (11:05 +0200)
Drop use of the deprecated virtio_map_sg in virtio core.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/virtio/virtio.c

index 943b9904bc2d960511e6f0534e93c2872b5fd95f..462157044cc55b22013a312b0d11fdfd100d49c9 100644 (file)
@@ -569,8 +569,7 @@ int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem)
     } while ((i = virtqueue_next_desc(vdev, desc_pa, i, max)) != max);
 
     /* Now map what we have collected */
-    virtqueue_map_sg(elem->in_sg, elem->in_addr, elem->in_num, 1);
-    virtqueue_map_sg(elem->out_sg, elem->out_addr, elem->out_num, 0);
+    virtqueue_map(elem);
 
     elem->index = head;