qemu/tests/qtest/libqos
Eric Auger 3df72d1c55 tests/qtest/libqos/pci: Introduce pio_limit
At the moment the IO space limit is hardcoded to
QPCI_PIO_LIMIT = 0x10000. When accesses are performed to a bar,
the base address of this latter is compared against the limit
to decide whether we perform an IO or a memory access.

On ARM, we cannot keep this PIO limit as the arm-virt machine
uses [0x3eff0000, 0x3f000000 ] for the IO space map and we
are mandated to allocate at 0x0.

Add a new flag in QPCIBar indicating whether it is an IO bar
or a memory bar. This flag is set on QPCIBar allocation and
provisionned based on the BAR configuration. Then the new flag
is used in access functions and in iomap() function.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220504152025.1785704-2-eric.auger@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-05-12 12:07:06 +02:00
..
aarch64-xlnx-zcu102-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
ahci.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
ahci.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
arm-imx25-pdk-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-n800-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-raspi2-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-sabrelite-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-smdkc210-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-virt-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
arm-xilinx-zynq-a9-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
e1000e.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
e1000e.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
fw_cfg.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
fw_cfg.h tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
i2c-imx.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
i2c-omap.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
i2c.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
i2c.h tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
libqos-pc.c meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
libqos-pc.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
libqos-spapr.c meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
libqos-spapr.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
libqos.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
libqos.h tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
malloc-pc.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
malloc-pc.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
malloc-spapr.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
malloc-spapr.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
malloc.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
malloc.h tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
meson.build libqtest: split QMP part in libqmp 2022-05-03 15:17:08 +04:00
pci-pc.c tests/qtest/libqos/pci: Introduce pio_limit 2022-05-12 12:07:06 +02:00
pci-pc.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
pci-spapr.c tests/qtest/libqos/pci: Introduce pio_limit 2022-05-12 12:07:06 +02:00
pci-spapr.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
pci.c tests/qtest/libqos/pci: Introduce pio_limit 2022-05-12 12:07:06 +02:00
pci.h tests/qtest/libqos/pci: Introduce pio_limit 2022-05-12 12:07:06 +02:00
ppc64_pseries-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
qgraph_internal.h tests: Remove uses of deprecated raspi2/raspi3 machine names 2021-09-01 11:08:15 +01:00
qgraph.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
qgraph.h tests: Remove uses of deprecated raspi2/raspi3 machine names 2021-09-01 11:08:15 +01:00
qos_external.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
qos_external.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
rtas.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
rtas.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
sdhci-cmd.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
sdhci-cmd.h tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
sdhci.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
sdhci.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
tpci200.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
usb.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
usb.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
vhost-user-blk.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
vhost-user-blk.h test: new qTest case to test the vhost-user-blk-server 2021-05-18 12:57:38 +02:00
virtio-9p.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-9p.h tests/9pfs: make create/remove test dir public 2020-11-01 19:44:29 +01:00
virtio-balloon.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-balloon.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-blk.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-blk.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-iommu.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-iommu.h tests: qtest: Add virtio-iommu test 2021-12-15 08:08:59 +01:00
virtio-mmio.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-mmio.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-net.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-net.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-pci-modern.c
virtio-pci-modern.h
virtio-pci.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-pci.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-rng.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-rng.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-scsi.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-scsi.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio-serial.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio-serial.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
virtio.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
virtio.h meson: convert tests/qtest to meson 2020-08-21 06:30:20 -04:00
x86_64_pc-machine.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00