qemu/tests/qtest/libqos
Markus Armbruster a56f3cdbdf fuzz: Simplify how we compute available machines and types
apply_to_qlist(), apply_to_node() work with QObjects.  This is
designed for use by tests/qtest/qos-test.c, which gets the data in
that form via QMP.  Goes back to commit fc281c8020 "tests: qgraph API
for the qtest driver framework".

Commit 275ab39d86 "fuzz: add support for qos-assisted fuzz targets"
added another user: qtest/fuzz/qos_fuzz.c.  To get the data as
QObjects, it uses qmp_marshal_query_machines() and
qmp_marshal_qom_list_types().

All this code is rather cumbersome.  Switch to working with generated
QAPI types instead:

* Replace apply_to_qlist() & friends by machines_apply_to_node() and
  types_apply_to_node().

* Have qos_fuzz.c use qmp_query_machines() and qmp_qom_list_types()
  instead.

* Have qos_test.c convert from QObject to the QAPI types.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200424071142.3525-3-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
2020-04-29 08:01:52 +02:00
..
aarch64-xlnx-zcu102-machine.c
ahci.c
ahci.h misc: Replace zero-length arrays with flexible array member (automatic) 2020-03-16 22:07:42 +01:00
arm-imx25-pdk-machine.c
arm-n800-machine.c
arm-raspi2-machine.c
arm-sabrelite-machine.c
arm-smdkc210-machine.c
arm-virt-machine.c
arm-xilinx-zynq-a9-machine.c
e1000e.c
e1000e.h
fw_cfg.c
fw_cfg.h boot-order-test: fix memleaks in boot-order-test 2020-02-04 09:00:57 +01:00
i2c-imx.c
i2c-omap.c
i2c.c libqos: rename i2c_send and i2c_recv 2020-02-22 08:26:48 +00:00
i2c.h libqos: rename i2c_send and i2c_recv 2020-02-22 08:26:48 +00:00
libqos-pc.c
libqos-pc.h
libqos-spapr.c
libqos-spapr.h ppc/spapr: Allow FWNMI on TCG 2020-03-17 17:00:22 +11:00
libqos.c
libqos.h
malloc-pc.c
malloc-pc.h
malloc-spapr.c
malloc-spapr.h
malloc.c
malloc.h
pci-pc.c
pci-pc.h
pci-spapr.c
pci-spapr.h
pci.c
pci.h
ppc64_pseries-machine.c
qgraph_internal.h
qgraph.c tests/qtest/libqos/qgraph: Remove superfluous semicolons 2020-02-18 20:20:49 +01:00
qgraph.h
qos_external.c fuzz: Simplify how we compute available machines and types 2020-04-29 08:01:52 +02:00
qos_external.h fuzz: Simplify how we compute available machines and types 2020-04-29 08:01:52 +02:00
rtas.c
rtas.h
sdhci.c
sdhci.h
tpci200.c
usb.c
usb.h
virtio-9p.c
virtio-9p.h
virtio-balloon.c
virtio-balloon.h
virtio-blk.c
virtio-blk.h
virtio-mmio.c
virtio-mmio.h
virtio-net.c
virtio-net.h
virtio-pci-modern.c
virtio-pci-modern.h
virtio-pci.c
virtio-pci.h
virtio-rng.c
virtio-rng.h
virtio-scsi.c
virtio-scsi.h
virtio-serial.c
virtio-serial.h
virtio.c
virtio.h
x86_64_pc-machine.c