qemu-e2k/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
ahci.h
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
fw_cfg.h
i2c-imx.c
i2c-omap.c
i2c.c
i2c.h
libqos-pc.c
libqos-pc.h
libqos-spapr.c
libqos-spapr.h
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
malloc-pc.h
malloc-spapr.c
malloc-spapr.h
malloc.c
malloc.h
pci-pc.c tests/libqos: has_buggy_msi flag 2019-03-07 17:28:26 +01:00
pci-pc.h
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
qgraph.c
qgraph.h
rtas.c
rtas.h
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
usb.h
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