virtio-serial: switch exit callback to VirtioDeviceClass
commit0e86c13fe2058adb8c792ebb7c51a6a7ca9d3d55
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:05:56 +0000 (20 14:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Dec 2013 20:46:48 +0000 (9 21:46 +0100)
treed00b9ca99d751d990d3d208a002e041878018f73
parent40dfc16f5fe0afb66f9436718781264dfadb6c61
virtio-serial: 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/char/virtio-serial-bus.c