Re: [Qemu-devel] [PATCH] virtio: link the rng backend through an alias property

2014-10-28 Thread Gonglei
On 2014/10/29 7:17, Paolo Bonzini wrote: > The virtio-rng backend is currently linked twice, once in > virtio-rng-pci/virtio-rng-ccw and once in virtio-rng-device. This > causes a double unref of the backend when the parent device is unplugged. > > To fix this, make virtio-rng-pci/virtio-rng-ccw

[Qemu-devel] [PATCH] virtio: link the rng backend through an alias property

2014-10-28 Thread Paolo Bonzini
The virtio-rng backend is currently linked twice, once in virtio-rng-pci/virtio-rng-ccw and once in virtio-rng-device. This causes a double unref of the backend when the parent device is unplugged. To fix this, make virtio-rng-pci/virtio-rng-ccw use an alias, similar to what is already being done