]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Tweak auto adding PCI bridge controller when extending default PCI bus
authorErik Skultety <eskultet@redhat.com>
Thu, 15 Jan 2015 13:14:17 +0000 (14:14 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Jan 2015 09:38:29 +0000 (10:38 +0100)
commit93c8ca997409a5a217f4f64b83c4e0e5df451a7c
tree5ef4060913312a638800dd1d4e46c1e713ecad75
parentc6adccae3a3767753f278cefdf8e9e66b828da9a
qemu: Tweak auto adding PCI bridge controller when extending default PCI bus

In case we find out, there are more PCI devices to be connected
than there are available slots on the default PCI bus, we automatically add a
new bus and a related PCI bridge controller as well. As there are no free slots
left on the default PCI bus, PCI bridge controller gets a free slot on a
newly created PCI bus which causes qemu to refuse to start the guest.
This fix introduces a new function qemuDomainPCIBusFullyReserved which
is checked right before we possibly try to reserve a slot for PCI bridge
controller.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1132900
src/qemu/qemu_command.c