From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37596 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUPKz-0006RG-Ky for qemu-devel@nongnu.org; Thu, 01 Jul 2010 15:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUPKp-0007IK-Oz for qemu-devel@nongnu.org; Thu, 01 Jul 2010 15:22:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21963) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUPKp-0007I5-Hy for qemu-devel@nongnu.org; Thu, 01 Jul 2010 15:22:07 -0400 From: Luiz Capitulino Date: Thu, 1 Jul 2010 16:21:32 -0300 Message-Id: <1278012111-26227-5-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1278012111-26227-1-git-send-email-lcapitulino@redhat.com> References: <1278012111-26227-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 04/23] QMP: Teach basic capability negotiation to python example List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: Jan Kiszka , qemu-devel@nongnu.org From: Jan Kiszka As sending "qmp_capabilities" on session start became mandatory, both python examples were broken. Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- QMP/qmp-shell | 1 + QMP/vm-info | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-shell b/QMP/qmp-shell index f89b9af..a5b72d1 100755 --- a/QMP/qmp-shell +++ b/QMP/qmp-shell @@ -42,6 +42,7 @@ def main(): qemu = qmp.QEMUMonitorProtocol(argv[1]) qemu.connect() + qemu.send("qmp_capabilities") print 'Connected!' diff --git a/QMP/vm-info b/QMP/vm-info index 8ebaeb3..be5b038 100755 --- a/QMP/vm-info +++ b/QMP/vm-info @@ -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)) -- 1.7.2.rc0