On Tue, 27 Oct 2015 10:48:01 +0200 "Michael S. Tsirkin" <m...@redhat.com> wrote:
> Drop deprecated use of virtqueue_map_sg. > > Signed-off-by: Michael S. Tsirkin <m...@redhat.com> Reviewed-by: Igor Mammedov <imamm...@redhat.com> > --- > hw/block/virtio-blk.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 8beb26b..3e230de 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;