d4393c4 tests: Reduce usage of legacy PCI controllers on PCIe machines

Authored and Committed by Andrea Bolognani 7 years ago
40 files changed. 300 lines added. 533 lines removed.
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy-q35.args
file modified
+1 -4
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy-q35.xml
file modified
+1 -9
tests/qemuxml2argvdata/qemuxml2argv-bootindex-floppy-q35.args
file modified
+1 -4
tests/qemuxml2argvdata/qemuxml2argv-bootindex-floppy-q35.xml
file modified
+1 -9
tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-machine.args
file modified
+1 -4
tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-machine.xml
file modified
+1 -12
tests/qemuxml2argvdata/qemuxml2argv-intel-iommu.args
file modified
+1 -4
tests/qemuxml2argvdata/qemuxml2argv-intel-iommu.xml
file modified
+1 -12
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus-bad-bus.xml
file modified
+3 -15
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus.args
file modified
+67 -69
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus.xml
file modified
+39 -46
tests/qemuxml2argvdata/qemuxml2argv-pcie-root-port-too-many.xml
file modified
+2 -4
tests/qemuxml2argvdata/qemuxml2argv-pcie-root-port.args
file modified
+2 -4
tests/qemuxml2argvdata/qemuxml2argv-pcie-root-port.xml
file modified
+2 -4
tests/qemuxml2argvdata/qemuxml2argv-pcie-switch-downstream-port.args
file modified
+10 -12
tests/qemuxml2argvdata/qemuxml2argv-pcie-switch-downstream-port.xml
file modified
+8 -10
tests/qemuxml2argvdata/qemuxml2argv-pcie-switch-upstream-port.args
file modified
+4 -6
tests/qemuxml2argvdata/qemuxml2argv-pcie-switch-upstream-port.xml
file modified
+4 -6
tests/qemuxml2argvdata/qemuxml2argv-pcihole64-q35.args
file modified
+0 -2
tests/qemuxml2argvdata/qemuxml2argv-pcihole64-q35.xml
file modified
+0 -2
tests/qemuxml2argvdata/qemuxml2argv-q35-dmi-bad-address1.xml
file modified
+2 -3
tests/qemuxml2argvdata/qemuxml2argv-q35-dmi-bad-address2.xml
file modified
+3 -18
tests/qemuxml2argvdata/qemuxml2argv-q35-wrong-root.xml
file modified
+0 -7
tests/qemuxml2argvdata/qemuxml2argv-q35.args
file modified
+0 -2
tests/qemuxml2argvdata/qemuxml2argv-q35.xml
file modified
+0 -7
tests/qemuxml2argvdata/qemuxml2argv-usb-controller-default-q35.args
file modified
+0 -2
tests/qemuxml2argvdata/qemuxml2argv-usb-controller-default-q35.xml
file modified
+0 -5
tests/qemuxml2argvdata/qemuxml2argv-usb-controller-explicit-q35.args
file modified
+0 -2
tests/qemuxml2argvdata/qemuxml2argv-usb-controller-explicit-q35.xml
file modified
+0 -5
tests/qemuxml2argvdata/qemuxml2argv-vcpu-placement-static.xml
file modified
+0 -6
tests/qemuxml2xmloutdata/qemuxml2xmlout-intel-iommu.xml
file modified
+1 -12
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-expander-bus.xml
file modified
+108 -117
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-root-port.xml
file modified
+3 -12
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-switch-downstream-port.xml
file modified
+26 -35
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-switch-upstream-port.xml
file modified
+8 -17
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcihole64-q35.xml
file modified
+0 -9
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35.xml
file modified
+0 -9
tests/qemuxml2xmloutdata/qemuxml2xmlout-usb-controller-default-q35.xml
file modified
+0 -9
tests/qemuxml2xmloutdata/qemuxml2xmlout-usb-controller-explicit-q35.xml
file modified
+0 -9
tests/qemuxml2xmloutdata/qemuxml2xmlout-vcpu-placement-static.xml
file modified
+0 -9
    tests: Reduce usage of legacy PCI controllers on PCIe machines
    
    Up until a while ago, libvirt would automatically add a legacy
    PCI controllers combo (dmi-to-pci-bridge + pci-bridge) to any
    PCIe machine type (x86_64/q35 and aarch64/virt).
    
    As a result, a number of input and output files in the test
    suite ended up containing the legacy PCI controllers, even
    though they are not needed or in any way relevant to the
    feature being tested.
    
    Get rid of most of the occurrences. Most of the time, this
    just means removing the controllers from the input file and
    regenerating the output files; in a few instances, some
    minor tweaking is performed on the input file, most notably
    removing the memory balloon: as memory balloon support was
    not the scope of the test being changed, there is no loss
    of test coverage from doing so.
    
    Several occurrences of the legacy PCI controllers remain in
    the test suite, both because removing their usage would have
    required even more tweaking, and because we still want to
    have coverage of this perfectly valid combination.