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)
commitd29f4343727ee1b49ee45ef69de73ea95a3d33b7
treea7e6b5212c847cd4e2c8e6fc1562ee16b8935a9f
parent8f748ffc29e4dbbba5583c7d77f1f40888ee49ff
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