I had these in a branch waiting for further work to make them more
useful, and abologna asked about this topic, so I'm posting these two patches. Note
that in most cases we'll still get a pci-bridge device added (since most devices are
legacy PCI) but at least if the config doesn't have any unaddressed PCI devices, that
won't happen.
As patch 1 states, the dmi-to-pci-bridge will still be there in all
cases for Q35/aarch64. That needs more work to eliminate.
Laine Stump (2):
qemu: don't be as insistent about adding dmi-to-pci-bridge or
pci-bridge
qemu: don't add pci-bridge to Q35/arm domains unless it's needed
src/qemu/qemu_domain.c | 14 +++++++-------
.../qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args | 1 -
.../qemuxml2argv-aarch64-virtio-pci-default.args | 1 -
tests/qemuxml2argvdata/qemuxml2argv-pcie-root.args | 3 +--
.../qemuxml2xmlout-aarch64-virtio-pci-default.xml | 5 -----
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-root.xml | 5 -----
6 files changed, 8 insertions(+), 21 deletions(-)
--
2.5.5