diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-10-27 10:18:24 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-10-29 11:05:24 +0200 |
commit | 3d8db153b4b4e12b6d11590ccd318fff0eafd688 (patch) | |
tree | 97bd3ae5833df5df07a9ca8a74a02cf799eb8f3b /hw/block/virtio-blk.c | |
parent | 13972ac5e263a7319609253edac5754129489132 (diff) |
virtio-blk: convert to virtqueue_map
Drop deprecated use of virtqueue_map_sg.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/block/virtio-blk.c')
-rw-r--r-- | hw/block/virtio-blk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 8beb26b4db..3e230debb8 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -839,10 +839,7 @@ static int virtio_blk_load_device(VirtIODevice *vdev, QEMUFile *f, req->next = s->rq; s->rq = req; - virtqueue_map_sg(req->elem.in_sg, req->elem.in_addr, - req->elem.in_num, 1); - virtqueue_map_sg(req->elem.out_sg, req->elem.out_addr, - req->elem.out_num, 0); + virtqueue_map(&req->elem); } return 0; |