virtio: switch to virtio_map
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>
This commit is contained in:
parent
8059feee00
commit
13972ac5e2
@ -569,8 +569,7 @@ int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem)
|
|||||||
} while ((i = virtqueue_next_desc(vdev, desc_pa, i, max)) != max);
|
} while ((i = virtqueue_next_desc(vdev, desc_pa, i, max)) != max);
|
||||||
|
|
||||||
/* Now map what we have collected */
|
/* Now map what we have collected */
|
||||||
virtqueue_map_sg(elem->in_sg, elem->in_addr, elem->in_num, 1);
|
virtqueue_map(elem);
|
||||||
virtqueue_map_sg(elem->out_sg, elem->out_addr, elem->out_num, 0);
|
|
||||||
|
|
||||||
elem->index = head;
|
elem->index = head;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user