]> git.ipfire.org Git - thirdparty/qemu.git/commit
Fix backcompat for hotplug of SCSI controllers
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2009 20:51:49 +0000 (20:51 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 19 Dec 2009 14:26:24 +0000 (08:26 -0600)
commit48c437f0ab8f75ef43caa75770c35ab7e8ed3869
tree57721bb022e3845f0c373954cbb193fb1ecae4e9
parent07d00c2174d5ced3aa72184e6163849857250f64
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>
(cherry picked from commit ec7efac4a967c650ae1cd8cebe28e7c69cbe3864)
hw/pci-hotplug.c