qemu/tests/libqos
Eric Blake a189a9375b ahci-test: Drop dependence on global_qtest
Managing parallel connections to two different monitors via
the implicit global_qtest makes it hard to copy-and-paste code
to tests that are not aware of the implicit state; the
management of global_qtest is even harder to follow because
it was masked behind set_context().

Instead, explicitly pass QTestState* around (generally, by
reusing the member already present in ahci->parent QOSState),
and call explicit qtest_* functions on all places that
interact with a monitor.

We can assert that the conversion is correct by checking that
global_qtest remains NULL throughout the test (a later patch
that changes global_qtest to not be a public global variable
will drop the assertions).

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
[thuth: rebased patch to current master branch]
Signed-off-by: Thomas Huth <thuth@redhat.com>
2019-03-12 07:40:59 +01:00
..
aarch64-xlnx-zcu102-machine.c tests/libqos: aarch64/xlnx-zcu102 machine node 2019-03-07 17:28:25 +01:00
ahci.c tests/libqos: rename qpci_init_pc and qpci_init_spapr functions 2019-03-07 16:50:04 +01:00
ahci.h ahci: fix FIS I bit and PIO Setup FIS interrupt 2018-06-25 16:50:48 -04:00
arm-raspi2-machine.c tests/libqos: arm/raspi2 machine node 2019-03-07 17:28:25 +01:00
arm-sabrelite-machine.c tests/libqos: arm/sabrelite machine node 2019-03-07 17:28:25 +01:00
arm-smdkc210-machine.c tests/libqos: arm/smdkc210 machine node 2019-03-07 17:28:25 +01:00
arm-virt-machine.c tests/libqos: arm/virt machine node 2019-03-07 17:28:26 +01:00
arm-xilinx-zynq-a9-machine.c tests/libqos: arm/xilinx-zynq-a9 machine node 2019-03-07 17:28:25 +01:00
e1000e.c tests/libqos: e1000e driver and interface nodes 2019-03-07 17:28:26 +01:00
e1000e.h tests/libqos: e1000e driver and interface nodes 2019-03-07 17:28:26 +01:00
fw_cfg.c libqos: Use explicit QTestState for fw_cfg operations 2018-02-14 11:43:41 +01:00
fw_cfg.h libqos: Use explicit QTestState for fw_cfg operations 2018-02-14 11:43:41 +01:00
i2c-imx.c libqos: Use explicit QTestState for i2c operations 2018-02-14 11:43:41 +01:00
i2c-omap.c libqos: Use explicit QTestState for i2c operations 2018-02-14 11:43:41 +01:00
i2c.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
i2c.h misc: add pca9552 LED blinker model 2018-06-08 13:15:32 +01:00
libqos-pc.c tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
libqos-pc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
libqos-spapr.c tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
libqos-spapr.h libqos: define SPAPR libqos functions 2016-09-23 10:29:40 +10:00
libqos.c ahci-test: Drop dependence on global_qtest 2019-03-12 07:40:59 +01:00
libqos.h ahci-test: Drop dependence on global_qtest 2019-03-12 07:40:59 +01:00
malloc-pc.c tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
malloc-pc.h tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
malloc-spapr.c tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
malloc-spapr.h tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
malloc.c tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
malloc.h tests/libqos: embed allocators instead of malloc-ing them separately 2019-03-07 17:28:07 +01:00
pci-pc.c tests/libqos: has_buggy_msi flag 2019-03-07 17:28:26 +01:00
pci-pc.h tests/libqos: pci-pc driver and interface nodes 2019-03-07 17:28:24 +01:00
pci-spapr.c tests/libqos: has_buggy_msi flag 2019-03-07 17:28:26 +01:00
pci-spapr.h tests/libqos: pci-spapr driver and interface nodes 2019-03-07 17:28:25 +01:00
pci.c tests/libqos: has_buggy_msi flag 2019-03-07 17:28:26 +01:00
pci.h tests/libqos: has_buggy_msi flag 2019-03-07 17:28:26 +01:00
ppc64_pseries-machine.c tests/qgraph: ppc64/pseries machine node 2019-03-07 17:28:26 +01:00
qgraph_internal.h tests: qgraph API for the qtest driver framework 2019-03-07 17:28:24 +01:00
qgraph.c tests: qgraph API for the qtest driver framework 2019-03-07 17:28:24 +01:00
qgraph.h tests: qgraph API for the qtest driver framework 2019-03-07 17:28:24 +01:00
rtas.c libqos: Use explicit QTestState for rtas operations 2018-02-14 11:43:41 +01:00
rtas.h libqos: Use explicit QTestState for rtas operations 2018-02-14 11:43:41 +01:00
sdhci.c tests/libqos: sdhci driver and interface nodes 2019-03-07 17:28:25 +01:00
sdhci.h tests/libqos: sdhci driver and interface nodes 2019-03-07 17:28:25 +01:00
tpci200.c qos-test: tpci200 test node 2019-03-07 17:28:46 +01:00
usb.c tests: Clean up string interpolation around qtest_qmp_device_add() 2018-08-16 08:42:06 +02:00
usb.h tests: Clean up string interpolation around qtest_qmp_device_add() 2018-08-16 08:42:06 +02:00
virtio-9p.c tests/libqos: virtio-9p driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-9p.h tests/libqos: virtio-9p driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-balloon.c tests/libqos: virtio-balloon driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-balloon.h tests/libqos: virtio-balloon driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-blk.c tests/libqos: virtio-blk driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-blk.h tests/libqos: virtio-blk driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-mmio.c tests/libqos: virtio-mmio driver and interface nodes 2019-03-07 17:28:26 +01:00
virtio-mmio.h tests/libqos: virtio-mmio driver and interface nodes 2019-03-07 17:28:26 +01:00
virtio-net.c tests/libqos: support multiqueue for virtio-net 2019-03-07 17:28:42 +01:00
virtio-net.h tests/libqos: support multiqueue for virtio-net 2019-03-07 17:28:42 +01:00
virtio-pci.c tests/libqos: remove pre-qgraph QVirtioPCIDevice API 2019-03-07 17:28:45 +01:00
virtio-pci.h tests/libqos: remove pre-qgraph QVirtioPCIDevice API 2019-03-07 17:28:45 +01:00
virtio-rng.c tests/libqos: virtio-rng driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-rng.h tests/libqos: virtio-rng driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-scsi.c tests/libqos: virtio-scsi driver and interface nodes 2019-03-07 17:28:42 +01:00
virtio-scsi.h tests/libqos: virtio-scsi driver and interface nodes 2019-03-07 17:28:42 +01:00
virtio-serial.c tests/libqos: virtio-serial driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio-serial.h tests/libqos: virtio-serial driver and interface nodes 2019-03-07 17:28:27 +01:00
virtio.c tests: move virtio entirely to qos-test 2019-03-07 17:28:45 +01:00
virtio.h tests: move virtio entirely to qos-test 2019-03-07 17:28:45 +01:00
x86_64_pc-machine.c tests/libqos: x86_64/pc machine node 2019-03-07 17:28:25 +01:00