]> xenbits.xensource.com Git - libvirt.git/commit
qemu: always permit PCI devices to be manually assigned to a PCIe bus
authorLaine Stump <laine@laine.org>
Tue, 9 Jun 2015 17:33:36 +0000 (13:33 -0400)
committerLaine Stump <laine@laine.org>
Fri, 26 Jun 2015 17:51:33 +0000 (13:51 -0400)
commit1e15be1bbcbb0b43348aaabfb41b7a3a0fb51c43
tree5ead2356c7d8826635ddd74b33bf507c5d27d4a0
parent1074fc5061ad7ca41fb9a89f63bdc2bcef88d0e1
qemu: always permit PCI devices to be manually assigned to a PCIe bus

When support for the pcie-root and dmi-to-pci-bridge buses on a Q35
machinetype was added, I was concerned that even though qemu at the
time allowed plugging a PCI device into a PCIe port, that it might not
be supported in the future. To prevent painful backtracking in the
possible future where this happened, I disallowed such connections
except in a few specific cases requested by qemu developers (indicated
in the code with the flag VIR_PCI_CONNECT_TYPE_EITHER_IF_CONFIG).

Now that a couple years have passed, there is a clear message from
qemu that there is no danger in allowing PCI devices to be plugged
into PCIe ports. This patch eliminates
VIR_PCI_CONNECT_TYPE_EITHER_IF_CONFIG and changes the code to always
allow PCI->PCIe or PCIe->PCI connection *when the PCI address is
specified in the config. (For newly added devices that haven't yet
been given a PCI address, the auto-placement still prefers using the
correct type of bus).
docs/formatdomain.html.in
src/conf/domain_addr.c
src/conf/domain_addr.h
src/qemu/qemu_command.c