History | View | Annotate | Download (3.7 kB)
QMP: Revamp the Python class example
This commit simplifies and fixes a number of problems in the PythonQEMUMonitorProtocol example class.
It's almost a rewrite and it DOES BREAK the qmp-shell script (whichis going to be fixed in the next commit).
However, I'm not going to split this in different commits because it...
QMP: Fix python helper /wrt long return strings
Remove the arbitrary limitation of 1024 characters per return string andread complete lines instead. Required for device_show.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP: Introduce qmp-shell
This is a very simple shell written in Python for demonstrationpurposes.
Unfortunately it's a bit awkward right now, as the user hasto specify the arguments names and the printed data can bea raw dictionary or list, like the following example:...