mirror of https://gitee.com/openkylin/qemu.git
QMP: Teach basic capability negotiation to python example
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>
This commit is contained in:
parent
8ac470c1f9
commit
8d7e84571b
|
@ -42,6 +42,7 @@ def main():
|
|||
|
||||
qemu = qmp.QEMUMonitorProtocol(argv[1])
|
||||
qemu.connect()
|
||||
qemu.send("qmp_capabilities")
|
||||
|
||||
print 'Connected!'
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue