]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/libqos: Add generic pci host bridge in arm-virt machine
authorEric Auger <eric.auger@redhat.com>
Wed, 4 May 2022 15:20:25 +0000 (17:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 10:07:06 +0000 (12:07 +0200)
commit70be1d93f9c2dbf6793830d482e91bb33f921348
tree3efafc28e876e412ad1e88986227ac0c567d0c57
parent02ee7a8a97d3ddeda887b596005b462f680dc89c
tests/qtest/libqos: Add generic pci host bridge in arm-virt machine

Up to now the virt-machine node contains a virtio-mmio node.
However no driver produces any PCI interface node. Hence, PCI
tests cannot be run with aarch64 binary.

Add a GPEX driver node that produces a pci interface node. This latter
then can be consumed by all the pci tests. One of the first motivation
was to be able to run the virtio-iommu-pci tests.

We still face an issue with pci hotplug tests as hotplug cannot happen
on the pcie root bus and require a generic root port. This will be
addressed later on.

We force cpu=max along with aarch64/virt machine as some PCI tests
require high MMIO regions to be available.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20220504152025.1785704-4-eric.auger@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/qtest/libqos/arm-virt-machine.c
tests/qtest/libqos/generic-pcihost.c [new file with mode: 0644]
tests/qtest/libqos/generic-pcihost.h [new file with mode: 0644]
tests/qtest/libqos/meson.build