qemu-e2k/hw/virtio
Paolo Bonzini cbd5ac6991 virtio: link the rng backend through an alias property
The virtio-rng backend is currently linked twice, once in the proxy
device (e.g. virtio-rng-pci) and once in virtio-rng-device.  This causes
a double unref of the backend when the parent device is unplugged.

To fix this, make the proxy device use an alias, similar to what is
already being done for the iothread link.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Message-id: 1414577839-18695-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-10-30 12:59:27 +00:00
..
dataplane vring: Better error handling if num is too large 2014-09-22 11:39:49 +01:00
Makefile.objs block: Always compile virtio-blk dataplane 2014-09-22 11:39:51 +01:00
vhost-backend.c
vhost-user.c
vhost.c vhost_net: start/stop guest notifiers properly 2014-09-03 16:40:44 +03:00
virtio-balloon.c virtio-balloon: Tweak recent fix for integer overflow 2014-10-23 09:01:29 -04:00
virtio-bus.c
virtio-mmio.c virtio-mmio: Drop useless bus->allow_hotplug = 0 2014-10-15 05:03:13 +02:00
virtio-pci.c virtio: link the rng backend through an alias property 2014-10-30 12:59:27 +00:00
virtio-pci.h
virtio-rng.c
virtio.c virtio: add a wrapper for virtio-backend initialization 2014-09-30 11:09:59 +02:00