]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow multiple bridges when pci-bridges is not available
authorAndrea Bolognani <abologna@redhat.com>
Tue, 21 Feb 2017 12:16:52 +0000 (13:16 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 Feb 2017 17:55:55 +0000 (18:55 +0100)
commit011d546504e8b36c51b69d2f556ccdbcee975bed
tree5acb26dfe7fcdc7798d10f708ced2514d37abe57
parentd4393c42934dd1960c022f77834f3987eb8de5e7
qemu: Allow multiple bridges when pci-bridges is not available

qemuDomainAssignPCIAddresses() hardcoded the assumption
that the only way to support devices on a non-zero bus is
to add one or more pci-bridges; however, since we now
support a large selection of PCI controllers that can be
used instead, the assumption is no longer true.

Moreover, this check was always redundant, because the
only sensible time to check for the availability of
pci-bridge is when building the QEMU command line, and
such a check is of course already in place.

In fact, there were *two* such checks, but since one of
the two was relying on the incorrect assumption explained
above, and it was redundant anyway, it has been dropped.
src/qemu/qemu_command.c
src/qemu/qemu_domain_address.c