]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: don't abort() when trying to hotplug with acpi off.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Dec 2009 10:11:05 +0000 (11:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 14:17:30 +0000 (08:17 -0600)
commit992f3cb78ecf4987ada77b0caffa1640faead8cc
tree96d1391b08178c3981be30c00a8da182b1944ee6
parent828b2ff6769ff8e8d294e0c7b77472f985476a9f
pci: don't abort() when trying to hotplug with acpi off.

The PCI bus on x86 requires ACPI for hotplug support, thus disbling ACPI
also disables hotplug for the PCI bus.  This patch makes qemu check
whenever the PCI bus in question can handle hotplug before trying to add
devices.  This is needed because qdev will abort() on any attempt to
hotplug devices into a non-hotpluggable bus.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 53e0d8affe8514b070db2d265af13a534cb8eda4)
hw/pci-hotplug.c