Received: from eggs.gnu.org ([2001:4830:134:3::10]:49413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3jx-0004d6-Rb for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr3ju-0002N0-In for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:52:37 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:35161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3ju-0002Mn-9Y for qemu-devel@nongnu.org; Tue, 27 Oct 2015 08:52:34 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Oct 2015 12:52:33 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9D9E21B08172 for ; Tue, 27 Oct 2015 12:51:26 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9RCpFf89830776 for ; Tue, 27 Oct 2015 12:51:16 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9RCp8mm011215 for ; Tue, 27 Oct 2015 06:51:08 -0600 Date: Tue, 27 Oct 2015 13:51:06 +0100 From: Cornelia Huck Message-ID: <20151027135106.623c227b.cornelia.huck@de.ibm.com> In-Reply-To: <1445948971-3929-1-git-send-email-mst@redhat.com> References: <1445948971-3929-1-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] fixup! virtio: introduce virtio_map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Igor Mammedov , qemu-devel@nongnu.org On Tue, 27 Oct 2015 14:30:05 +0200 "Michael S. Tsirkin" wrote: > --- > > 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; With this fixup applied, both s390 machines come up. virtio-serial and virtio-blk with and without dataplane seem fine. At a first glance, the code seems fine as well.