History | View | Annotate | Download (8.2 kB)
Add support for pretty-printing response in qmp-shell
Add a '-p' arg to the QMP/qmp-shell test program, which usesthe python pprint module to pretty-print the dictionaryreturned from a command
$ qmp-shell -p /tmp/qemu Welcome to the QMP low-level shell!...
QMP/qmp-shell: Introduce HMP mode
In which qmp-shell will exclusively use the HMP passthrough feature,this is useful for testing.
Example:
(QEMU) info network...
QMP: Revamp the qmp-shell script
This commit updates the qmp-shell script to use the new interfaceintroduced by the last commit.
Additionally, the following fixes/features are also introduced:
o TCP sockets support o Update/add documentation o Simple command-line completion...
QMP: Teach basic capability negotiation to python example
As sending "qmp_capabilities" on session start became mandatory, bothpython examples were broken.
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:...