libqos: Use explicit QTestState for remaining libqos operations
commit3d95fb9770f0fbf4396879bb6152b0e78edf0546
authorEric Blake <eblake@redhat.com>
Mon, 11 Sep 2017 17:20:01 +0000 (11 12:20 -0500)
committerThomas Huth <thuth@redhat.com>
Wed, 14 Feb 2018 10:43:41 +0000 (14 11:43 +0100)
treee2e4022460ab6878de071853c5d8cba8c3410be1
parent10747e55d53d32f1f062456cac1e4fa32f58c44e
libqos: Use explicit QTestState for remaining libqos operations

Drop one more client of global_qtest by teaching all remaining
libqos stragglers to pass in an explicit QTestState.  Change the
setting of global_qtest from being implicit in libqos' call to
qtest_start() to instead be explicit in all clients that are
still relying on global_qtest.

Note that qmp_execute() can be greatly simplified in the process,
and that we also get rid of interpolation of a JSON string into a
temporary variable when qtest_qmp() can do it more reliably.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Greg Kurz <groug@kaod.org>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/ahci-test.c
tests/ivshmem-test.c
tests/libqos/libqos-pc.c
tests/libqos/libqos.c
tests/megasas-test.c
tests/rtas-test.c
tests/usb-hcd-uhci-test.c
tests/virtio-9p-test.c
tests/virtio-blk-test.c
tests/virtio-net-test.c
tests/virtio-scsi-test.c