]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-balloon: switch exit callback to VirtioDeviceClass
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:06:08 +0000 (14:06 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:36:15 +0000 (21:36 -0600)
commitdef56d28cfc58ffd6945947421447ab6cd6c73de
tree4679cbaf5b994fb135a815cd7860d128f652800d
parent478f1f6ccfc4195d6ad136e1108199c091214c9f
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>
(cherry picked from commit baa61b9870dd7e0bb07e0ae61c6ec805db13f699)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio-balloon.c