]> git.proxmox.com Git - mirror_qemu.git/commit - hw/pci/pci-hotplug-old.c
hotplug: more fixes for scsi disk hotplug.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Oct 2009 13:30:22 +0000 (15:30 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:28:42 +0000 (12:28 -0500)
commit30d335d68d93705eb346387c03bb6aca0f52454a
treea7e6b5212c847cd4e2c8e6fc1562ee16b8935a9f
parent5b684b5a56e81f6f88234952fe8ed68010c36e19
hotplug: more fixes for scsi disk hotplug.

Changes:
 - create common scsi_hot_add function for adding a scsi disk to
   a adapter.
 - Add sanity checks.  You can't drive_add disks to the VGA any more.
 - Ignore the unit value calculated by drive_init, add a comment
   explaining why.  Review the patch to find the details ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci-hotplug.c