Received: from eggs.gnu.org ([2001:4830:134:3::10]:50294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrud-0008NG-Ki for qemu-devel@nongnu.org; Fri, 04 Sep 2015 10:24:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXruZ-0002ks-SN for qemu-devel@nongnu.org; Fri, 04 Sep 2015 10:24:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXruZ-0002kA-NY for qemu-devel@nongnu.org; Fri, 04 Sep 2015 10:24:15 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 67007C0B2E1E for ; Fri, 4 Sep 2015 14:24:15 +0000 (UTC) From: Markus Armbruster Date: Fri, 4 Sep 2015 16:24:12 +0200 Message-Id: <1441376653-15029-2-git-send-email-armbru@redhat.com> In-Reply-To: <1441376653-15029-1-git-send-email-armbru@redhat.com> References: <1441376653-15029-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 1/2] qmp-shell: add documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: John Snow From: John Snow I should probably document the changes that were made. Signed-off-by: John Snow Message-Id: <1435775149-17285-1-git-send-email-jsnow@redhat.com> Reviewed-By: Kashyap Chamarthy Reviewed-by: Luiz Capitulino Signed-off-by: Markus Armbruster --- scripts/qmp/qmp-shell | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell index 65280d2..fa39bf0 100755 --- a/scripts/qmp/qmp-shell +++ b/scripts/qmp/qmp-shell @@ -29,6 +29,41 @@ # (QEMU) device_add driver=e1000 id=net1 # {u'return': {}} # (QEMU) +# +# key=value pairs also support Python or JSON object literal subset notations, +# without spaces. Dictionaries/objects {} are supported as are arrays []. +# +# example-command arg-name1={'key':'value','obj'={'prop':"value"}} +# +# Both JSON and Python formatting should work, including both styles of +# string literal quotes. Both paradigms of literal values should work, +# including null/true/false for JSON and None/True/False for Python. +# +# +# Transactions have the following multi-line format: +# +# transaction( +# action-name1 [ arg-name1=arg1 ] ... [arg-nameN=argN ] +# ... +# action-nameN [ arg-name1=arg1 ] ... [arg-nameN=argN ] +# ) +# +# One line transactions are also supported: +# +# transaction( action-name1 ... ) +# +# For example: +# +# (QEMU) transaction( +# TRANS> block-dirty-bitmap-add node=drive0 name=bitmap1 +# TRANS> block-dirty-bitmap-clear node=drive0 name=bitmap0 +# TRANS> ) +# {"return": {}} +# (QEMU) +# +# Use the -v and -p options to activate the verbose and pretty-print options, +# which will echo back the properly formatted JSON-compliant QMP that is being +# sent to QEMU, which is useful for debugging and documentation generation. import qmp import json -- 2.4.3