virtio-rng: switch exit callback to VirtioDeviceClass
commit7bb6edb0e3dd78d74e0ac980cf6c0a07307f61bf
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:06:08 +0000 (20 14:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Dec 2013 20:46:48 +0000 (9 21:46 +0100)
tree17ed0cf16441dd092ae16ec8d76e907ab21ee678
parentbaa61b9870dd7e0bb07e0ae61c6ec805db13f699
virtio-rng: switch exit callback to VirtioDeviceClass

This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.

Cc: qemu-stable@nongnu.org
Acked-by: Andreas Faerber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio-rng.c