Fix backcompat for hotplug of SCSI controllers
commitec7efac4a967c650ae1cd8cebe28e7c69cbe3864
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2009 20:51:49 +0000 (7 20:51 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 18 Dec 2009 17:26:33 +0000 (18 11:26 -0600)
tree048e468d40420f82f37e5fcf40cae7a084788b16
parent47f5ba724871622c7db7a73fd05d6b3646478dd6
Fix backcompat for hotplug of SCSI controllers

SCSI controllers have no trouble existing without any attached
disks. This could be achieved with the (legacy) monitor syntax

  pci_add pci_addr=auto storage if=scsi

This is now denied with

  scsi requires a backing file/device.
  failed to add if=scsi

There is no need for this denial and it breaks compatability
with existing QEMU usage, so remove the check for presence
of a drive.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci-hotplug.c