diff options
author | Eric Blake <eblake@redhat.com> | 2017-09-11 12:20:01 -0500 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2018-02-14 11:43:41 +0100 |
commit | 3d95fb9770f0fbf4396879bb6152b0e78edf0546 (patch) | |
tree | e2e4022460ab6878de071853c5d8cba8c3410be1 /tests/libqos/libqos-pc.c | |
parent | 10747e55d53d32f1f062456cac1e4fa32f58c44e (diff) | |
download | qemu-3d95fb9770f0fbf4396879bb6152b0e78edf0546.zip qemu-3d95fb9770f0fbf4396879bb6152b0e78edf0546.tar.gz qemu-3d95fb9770f0fbf4396879bb6152b0e78edf0546.tar.bz2 |
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>
Diffstat (limited to 'tests/libqos/libqos-pc.c')
-rw-r--r-- | tests/libqos/libqos-pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/libqos-pc.c b/tests/libqos/libqos-pc.c index b554758..a9c1ace 100644 --- a/tests/libqos/libqos-pc.c +++ b/tests/libqos/libqos-pc.c @@ -25,7 +25,7 @@ QOSState *qtest_pc_boot(const char *cmdline_fmt, ...) qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); va_end(ap); - qtest_irq_intercept_in(global_qtest, "ioapic"); + qtest_irq_intercept_in(qs->qts, "ioapic"); return qs; } |