Skip to content

Commit

Permalink
virtio: switch to virtio_map
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin committed Oct 29, 2015
1 parent 8059fee commit 13972ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hw/virtio/virtio.c
Expand Up @@ -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;

Expand Down

0 comments on commit 13972ac

Please sign in to comment.