qemu/tests/qtest/fuzz
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
..
fork_fuzz.c
fork_fuzz.h
fork_fuzz.ld fuzz: fix style/typos in linker-script comments 2020-03-06 10:33:26 +00:00
fuzz.c
fuzz.h
i440fx_fuzz.c fuzz: add i440fx fuzz targets 2020-02-22 08:26:48 +00:00
Makefile.include fuzz: add virtio-scsi fuzz target 2020-02-22 08:26:48 +00:00
qos_fuzz.c fuzz: Simplify how we compute available machines and types 2020-04-29 08:01:52 +02:00
qos_fuzz.h fuzz: add support for qos-assisted fuzz targets 2020-02-22 08:26:48 +00:00
virtio_net_fuzz.c fuzz: add virtio-net fuzz target 2020-02-22 08:26:48 +00:00
virtio_scsi_fuzz.c fuzz: add virtio-scsi fuzz target 2020-02-22 08:26:48 +00:00