]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
virtio-blk: switch exit callback to VirtioDeviceClass
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:05:42 +0000 (14:05 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:36:15 +0000 (21:36 -0600)
commite84e23de3595c48d58745d518c323350bbf228f0
tree6479a16587ff11e83ddede3d03499b5075123e86
parent40699a469ec9ead969bb89e0cf6bd6254566bb54
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>
(cherry picked from commit 40dfc16f5fe0afb66f9436718781264dfadb6c61)

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