]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
QMP: Teach basic capability negotiation to python example
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 15 Jun 2010 22:38:45 +0000 (00:38 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 1 Jul 2010 17:27:13 +0000 (14:27 -0300)
As sending "qmp_capabilities" on session start became mandatory, both
python examples were broken.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP/qmp-shell
QMP/vm-info

index f89b9af87ec86994b2f6365d7d0ac240cf82b3d7..a5b72d15d1808c8764b11cc93c02992626ecad7f 100755 (executable)
@@ -42,6 +42,7 @@ def main():
 
     qemu = qmp.QEMUMonitorProtocol(argv[1])
     qemu.connect()
+    qemu.send("qmp_capabilities")
 
     print 'Connected!'
 
index 8ebaeb38c00a7c20ebf783c9bff8804af6e0aeea..be5b03843ca76fa923ea3296ae64b6fbdb2b5917 100755 (executable)
@@ -24,6 +24,7 @@ def main():
 
     qemu = qmp.QEMUMonitorProtocol(argv[1])
     qemu.connect()
+    qemu.send("qmp_capabilities")
 
     for cmd in [ 'version', 'kvm', 'status', 'uuid', 'balloon' ]:
         print cmd + ': ' + str(qemu.send('query-' + cmd))