]> git.ipfire.org Git - thirdparty/qemu.git/commit
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 14:17:30 +0000 (08:17 -0600)
commitea2138cf90fd4c2a6fefabff23b4c8681411a3f0
treeee9ab5c5a77ec4b7aceea19a082a85dc533f31c5
parent992f3cb78ecf4987ada77b0caffa1640faead8cc
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>
(cherry picked from commit 09e3acc6cfabfd85a9dacc04471df5f05019c779)
hw/pci.c