diff options
author | Maxim Levitsky | 2020-10-06 14:38:53 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-10-12 17:50:48 +0200 |
commit | c22045bfe6d5ceebd414ff53ff23fff7ad5930d1 (patch) | |
tree | 4308e0c4336d2529d752f6595da5252f9e9314a6 /tests/qtest/ioh3420-test.c | |
parent | qtest: rename qtest_qmp_receive to qtest_qmp_receive_dict (diff) | |
download | qemu-c22045bfe6d5ceebd414ff53ff23fff7ad5930d1.tar.gz qemu-c22045bfe6d5ceebd414ff53ff23fff7ad5930d1.tar.xz qemu-c22045bfe6d5ceebd414ff53ff23fff7ad5930d1.zip |
qtest: Reintroduce qtest_qmp_receive with QMP event buffering
The new qtest_qmp_receive buffers all the received qmp events, allowing
qtest_qmp_eventwait_ref to return them.
This is intended to solve the race in regard to ordering of qmp events
vs qmp responses, as soon as the callers start using the new interface.
In addition to that, define qtest_qmp_event_ref a function which only scans
the buffer that qtest_qmp_receive stores the events to. This is intended
for callers that are only interested in events that were received during
the last call to the qtest_qmp_receive.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201006123904.610658-3-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/qtest/ioh3420-test.c')
0 files changed, 0 insertions, 0 deletions