QMP: Introduce qmp-shell
commitcedebdacd2307a3e4df9aec9839b12895c25e5f5
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Nov 2009 00:59:09 +0000 (26 22:59 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:25 +0000 (3 09:41 -0600)
tree09b4fb42724c989bab8f95d768e5821fed29a074
parente2419113ddc6e1b7765a8ccebfc425e5547c7a19
QMP: Introduce qmp-shell

This is a very simple shell written in Python for demonstration
purposes.

Unfortunately it's a bit awkward right now, as the user has
to specify the arguments names and the printed data can be
a raw dictionary or list, like the following example:

(QEMU) pci_add pci_addr=auto type=nic
{u'slot': 5, u'bus': 0, u'domain': 0, u'function': 0}
(QEMU)

It's worth to note that the shell is broken into two files.
One is the shell itself, the other is the QMP class which
handles the communication with QEMU.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QMP/qmp-shell [new file with mode: 0755]
QMP/qmp.py [new file with mode: 0644]