3 # Simple QEMU shell on top of QMP
5 # Copyright (C) 2009 Red Hat Inc.
8 # Luiz Capitulino <lcapitulino@redhat.com>
10 # This work is licensed under the terms of the GNU GPL, version 2. See
11 # the COPYING file in the top-level directory.
17 # $ qemu [...] -monitor control,unix:./qmp,server
23 # Commands have the following format:
25 # < command-name > [ arg-name1=arg1 ] ... [ arg-nameN=argN ]
29 # (QEMU) info item=network
33 from sys
import argv
,exit
36 print 'bye exit from the shell'
40 print 'qemu-shell <unix-socket>'
43 qemu
= qmp
.QEMUMonitorProtocol(argv
[1])
50 cmd
= raw_input('(QEMU) ')
68 print '-> command format: <command-name> ',
69 print '[arg-name1=arg1] ... [arg-nameN=argN]'
71 if __name__
== '__main__':