Received: from eggs.gnu.org ([2001:4830:134:3::10]:51894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrQMt-0001y9-SA for qemu-devel@nongnu.org; Wed, 28 Oct 2015 09:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrQMo-0007Mv-9c for qemu-devel@nongnu.org; Wed, 28 Oct 2015 09:02:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrQMo-0007Mq-4m for qemu-devel@nongnu.org; Wed, 28 Oct 2015 09:02:14 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 9F962461E2 for ; Wed, 28 Oct 2015 13:02:13 +0000 (UTC) Date: Wed, 28 Oct 2015 14:02:11 +0100 From: Igor Mammedov Message-ID: <20151028140211.082b3ea5@nial.brq.redhat.com> In-Reply-To: <1445935663-31971-3-git-send-email-mst@redhat.com> References: <1445935663-31971-1-git-send-email-mst@redhat.com> <1445935663-31971-3-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/6] virtio: switch to virtio_map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On Tue, 27 Oct 2015 10:47:58 +0200 "Michael S. Tsirkin" wrote: > Drop use of the deprecated virtio_map_sg in virtio core. > > Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov > --- > hw/virtio/virtio.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c > index a6878c0..84e2320 100644 > --- a/hw/virtio/virtio.c > +++ b/hw/virtio/virtio.c > @@ -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; >