virtio-balloon: switch exit callback to VirtioDeviceClass
commitbaa61b9870dd7e0bb07e0ae61c6ec805db13f699
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)
tree014a9e6fb91ef61e1ef59b3256801432f2e05f0a
parente3c9d76acc984218264bbc6435b0c09f959ed9b8
virtio-balloon: 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-balloon.c