From: Frederic Konrad <fred.konrad@greensocs.com>
To: Cole Robinson <crobinso@redhat.com>
Cc: amit.shah@redhat.com, mst@redhat.com, qemu-devel@nongnu.org,
qemu-stable@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] virtio-rng: Fix crash with non-default backend
Date: Thu, 30 May 2013 20:00:05 +0200 [thread overview]
Message-ID: <51A793A5.1020503@greensocs.com> (raw)
In-Reply-To: <efb056e5a66cfc07f1a3b51ba9df052af64b1e81.1369925240.git.crobinso@redhat.com>
Hi,
On 30/05/2013 16:47, Cole Robinson wrote:
> 'default_backend' isn't always set, but 'rng' is, so use that.
>
> $ ./x86_64-softmmu/qemu-system-x86_64 -object rng-random,id=rng0,filename=/dev/random -device virtio-rng-pci,rng=rng0
> Segmentation fault (core dumped)
>
> Regressed with virtio refactoring in 59ccd20a9ac719cff82180429458728f03ec612f
Sorry for that :/,
Can you do the same fix for:
- s390 (hw/s390x/s390-virtio-bus.c:303)
- ccw (hw/s390x/virtio-ccw.c:747)
Thanks,
Fred
> CC: qemu-stable@nongnu.org
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
> hw/virtio/virtio-pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
> index 444b71a..b070b64 100644
> --- a/hw/virtio/virtio-pci.c
> +++ b/hw/virtio/virtio-pci.c
> @@ -1455,7 +1455,7 @@ static int virtio_rng_pci_init(VirtIOPCIProxy *vpci_dev)
> }
>
> object_property_set_link(OBJECT(vrng),
> - OBJECT(vrng->vdev.conf.default_backend), "rng",
> + OBJECT(vrng->vdev.conf.rng), "rng",
> NULL);
>
> return 0;
prev parent reply other threads:[~2013-05-30 18:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 14:47 [Qemu-devel] [PATCH] virtio-rng: Fix crash with non-default backend Cole Robinson
2013-05-30 18:00 ` Frederic Konrad [this message]
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=51A793A5.1020503@greensocs.com \
--to=fred.konrad@greensocs.com \
--cc=amit.shah@redhat.com \
--cc=crobinso@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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).