Add Qemu Monitor Support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 3 repliesIn review
- v11 patch 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | qemurunner: add support for qmp cmdsmeta/ meta/ meta/ +3 more | +126 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [WIP v2 0/1] Add Qemu Monitor Support
Version 2!
I figured out that I was saving the monitor_dumper in the wrong class, so moved where it's saved into the OESSHTarget code, it still needs to be created in the OEQemuTarget since that's where the runner is available.
Currently we interact with the JSON (which is new to me) interface of qmp and right now the write/read is just raw with no JSON dump, that might be why I am seeing the erros after the first one. I did try an empty run_monitor("") between commands, but that did not help. The run_monitor() may need to be reworked to deal with JSON.
Also, I still have the static port of 4444 for the telnet/cli version of the monitor and the possible race for the generated port as I have not found a solution for that yet.
Sau!
The output goes into files as follows:
::::::::::::::
tmp/log/runtime-hostdump/202011101608_qmp/unknown_00_qemu_monitor ::::::::::::::
'{"execute":"status"}\n'
{"timestamp": {"seconds": 1605053296, "microseconds": 645339}, "event": "NIC_RX_FILTER _CHANGED", "data": {"path": "/machine/peripheral-anon/device[0]/virtio-backend"}} ::::::::::::::
tmp/log/runtime-hostdump/202011101608_qmp/unknown_01_qemu_monitor ::::::::::::::
'{"execute":"query-status"}\n'
{"error": {"class": "GenericError", "desc": "QMP input must be a JSON object"}} ::::::::::::::
tmp/log/runtime-hostdump/202011101608_qmp/unknown_02_qemu_monitor ::::::::::::::
'{"execute":"query-block"}\n'
{"error": {"class": "GenericError", "desc": "QMP input must be a JSON object"}}
Saul Wold (1):
qemurunner: add support for qmp cmds
meta/classes/testimage.bbclass | 7 ++++ meta/lib/oeqa/core/target/qemu.py | 6 +++ meta/lib/oeqa/core/target/ssh.py | 22 ++++++++-- meta/lib/oeqa/targetcontrol.py | 5 +++ meta/lib/oeqa/utils/dump.py | 20 +++++++++ meta/lib/oeqa/utils/qemurunner.py | 70 ++++++++++++++++++++++++++++++- 6 files changed, 126 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1