]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add check for PCI bridge placement if there are too many PCI devices
authorErik Skultety <eskultet@redhat.com>
Fri, 23 Jan 2015 12:17:43 +0000 (13:17 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 23 Jan 2015 13:35:03 +0000 (14:35 +0100)
commitb7e6f2fc805c389e82c635ce10dde379224df92d
tree897cff8ceb6b8c0d75d7a9fd5986119da29526f5
parent5d6904b9919cd15a5b079d4523b3bfd79f7b0726
qemu: Add check for PCI bridge placement if there are too many PCI devices

Previous patch of this series fixed the issue with adding a new PCI bridge
when all the slots were reserved by devices with user specified addresses.
In case there are still some PCI devices waiting to get a slot reserved
by qemuAssignDevicePCISlots, this means a new bus needs to be
created along with a corresponding bridge controller. By adding an
additional check, this scenario now results in a reasonable error
instead of generating wrong qemu command line.
src/qemu/qemu_command.c