]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: 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)
commit8f08550ee2c743c1c3057849d3fb4093afac3472
tree058ab0e7bf5ea4965bbb693540073f50e82ef704
parente6c007056c3c40017bf8d00e4a0d259905f6e2cf
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>
(cherry picked from commit 3786cff5eb384d058395a2729af627fa3253d056)

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