virtio-net: switch exit callback to VirtioDeviceClass
commit3786cff5eb384d058395a2729af627fa3253d056
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)
treef6d3044598ee69fab43fc1f90d76ef5f730818b1
parent0e86c13fe2058adb8c792ebb7c51a6a7ca9d3d55
virtio-net: 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/net/virtio-net.c