From patchwork Tue Oct 27 12:30:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 536601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 408D01402CC for ; Tue, 27 Oct 2015 23:30:31 +1100 (AEDT) Received: from localhost ([::1]:59332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3OX-00053u-2u for incoming@patchwork.ozlabs.org; Tue, 27 Oct 2015 08:30:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3OG-0004k8-1o for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr3OC-00057o-1i for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:30:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3OB-00057S-TM for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:30:07 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 7E2248EA29; Tue, 27 Oct 2015 12:30:07 +0000 (UTC) Received: from redhat.com (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t9RCU5Sb031293; Tue, 27 Oct 2015 08:30:06 -0400 Date: Tue, 27 Oct 2015 14:30:05 +0200 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <1445948971-3929-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Cornelia Huck , Igor Mammedov Subject: [Qemu-devel] [PATCH] fixup! virtio: introduce virtio_map X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- This will fix the issue reported by Cornelia. hw/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index be32145..ed1f274 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -449,7 +449,7 @@ int virtqueue_avail_bytes(VirtQueue *vq, unsigned int in_bytes, } static void virtqueue_map_iovec(struct iovec *sg, hwaddr *addr, - size_t *num_sg, size_t max_size, + unsigned int *num_sg, unsigned int max_size, int is_write) { unsigned int i;