pci: don't hw_error() when no slot is available.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Dec 2009 10:11:06 +0000 (11:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 13:59:44 +0000 (07:59 -0600)
commit337a95d1917218c8f3950bd3d0712f226cdb0ec2
tree84e2a2cd1a21bbe0c94385b1766c78afca444001
parent7c02c8a266007936060b241a68893d0f98de1908
pci: don't hw_error() when no slot is available.

Current PCI code will simply hw_error() and thus abort in case no free
PCI slot is available or the requested PCI slot is already in use by
another device.  For the hotplug case this behavior is not acceptable.
This patch makes qemu pass up the error properly, so the calling code
can decide whenever it wants to exit with an error (on startup) or
whenever it wants to continue (hotplug).

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