drive cleanup fixes.
commit56a14938809331372b6cdb2afcb14d9818de4cbf
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Sep 2009 19:42:46 +0000 (25 21:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:49 +0000 (5 09:32 -0500)
tree256e324375f698356af28158f601b2301a673ba5
parent3f84865ade594a2ec1ef613ab5fd11949f3d49de
drive cleanup fixes.

Changes:
  * drive_uninit() wants a DriveInfo now.
  * drive_uninit() also calls bdrv_delete(),
    so callers don't need to do that.
  * drive_uninit() calls are moved over to the ->exit()
    callbacks, destroy_bdrvs() is zapped.
  * setting bdrv->private is not needed any more as the
    only user (destroy_bdrvs) is gone.
  * usb-storage needs no drive_uninit, scsi-disk will
    handle that.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/device-hotplug.c
hw/pci-hotplug.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/usb-msd.c
hw/virtio-blk.c
hw/virtio-pci.c
sysemu.h
vl.c