qemu-patch-raspberry4/hw/s390x
Cole Robinson 5b456438f5 virtio-rng: Fix crash with non-default backend
'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 59ccd20a9a

CC: qemu-stable@nongnu.org
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Message-id: bf4505014a0a941dbd3c62068f3cf2c496b69e6a.1370023944.git.crobinso@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-06-18 10:05:45 -05:00
..
css.c s390x/css: Fix concurrent sense. 2013-06-06 10:25:18 +02:00
css.h s390: Virtual channel subsystem support. 2013-01-29 21:50:04 +01:00
event-facility.c hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00
ipl.c S390: Add virtio-blk boot 2013-05-06 17:30:01 +02:00
Makefile.objs hw: move char devices to hw/char/, configure via default-configs/ 2013-04-08 18:13:14 +02:00
s390-virtio-bus.c virtio-rng: Fix crash with non-default backend 2013-06-18 10:05:45 -05:00
s390-virtio-bus.h virtio-bus: make virtio_x_bus_new static. 2013-04-24 11:50:20 -05:00
s390-virtio-ccw.c S390: CCW: Use new, working firmware by default 2013-04-26 20:18:24 +02:00
s390-virtio-hcall.c s390: Move hw files to hw/s390x 2013-01-29 21:50:04 +01:00
s390-virtio.c S390: IPL: Use different firmware for different machines 2013-04-26 20:18:24 +02:00
s390-virtio.h S390: IPL: Use different firmware for different machines 2013-04-26 20:18:24 +02:00
sclp.c hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00
sclpquiesce.c hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00
virtio-ccw.c virtio-rng: Fix crash with non-default backend 2013-06-18 10:05:45 -05:00
virtio-ccw.h virtio: Fix compilation without CONFIG_VHOST_SCSI 2013-04-26 13:23:31 +02:00