OSDN Git Service

virtio-blk: switch exit callback to VirtioDeviceClass
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:05:42 +0000 (14:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Dec 2013 20:46:48 +0000 (21:46 +0100)
commit40dfc16f5fe0afb66f9436718781264dfadb6c61
tree49940da19ef4aa515980b191064ddcb31d804073
parent5e96f5d2f8d2696ef7d2d8d7282c18fa6023470b
virtio-blk: 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/block/virtio-blk.c