qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fixup! virtio: introduce virtio_map
Date: Tue, 27 Oct 2015 13:51:06 +0100	[thread overview]
Message-ID: <20151027135106.623c227b.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <1445948971-3929-1-git-send-email-mst@redhat.com>

On Tue, 27 Oct 2015 14:30:05 +0200
"Michael S. Tsirkin" <mst@redhat.com> 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.

  reply	other threads:[~2015-10-27 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 12:30 [Qemu-devel] [PATCH] fixup! virtio: introduce virtio_map Michael S. Tsirkin
2015-10-27 12:51 ` Cornelia Huck [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-10-27 21:00 Michael S. Tsirkin
2015-10-28 11:40 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151027135106.623c227b.cornelia.huck@de.ibm.com \
    --to=cornelia.huck@de.ibm.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).