Received: from eggs.gnu.org ([2001:4830:134:3::10]:48546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnNi-0005bn-PH for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:04:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnNg-0004vG-SL for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:04:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnNg-0004uy-Md for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:04:08 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4E3C2C04D2B7 for ; Tue, 13 Sep 2016 13:04:08 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:02:09 +0400 Message-Id: <20160913130209.695-31-marcandre.lureau@redhat.com> In-Reply-To: <20160913130209.695-1-marcandre.lureau@redhat.com> References: <20160913130209.695-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Notice that "cpu" argument is actually "cpu-index" in the json. Signed-off-by: Marc-Andr=C3=A9 Lureau --- docs/qmp-commands.txt | 20 -------------------- qapi-schema.json | 9 +++++++++ 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 2a47041..280e337 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -217,26 +217,6 @@ Example: =20 Note: CPUs' indexes are obtained with the 'query-cpus' command. =20 -memsave -------- - -Save to disk virtual memory dump starting at 'val' of size 'size'. - -Arguments: - -- "val": the starting address (json-int) -- "size": the memory size, in bytes (json-int) -- "filename": file path (json-string) -- "cpu": virtual CPU index (json-int, optional) - -Example: - --> { "execute": "memsave", - "arguments": { "val": 10, - "size": 100, - "filename": "/tmp/virtual-mem-dump" } } -<- { "return": {} } - pmemsave -------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index 4a8c5d7..1ea8903 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2145,6 +2145,15 @@ # Since: 0.14.0 # # Notes: Errors were not reliably returned until 1.1 +# +# Example: +# +# -> { "execute": "memsave", +# "arguments": { "val": 10, +# "size": 100, +# "filename": "/tmp/virtual-mem-dump" } } +# <- { "return": {} } +# ## { 'command': 'memsave', 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index':= 'int'} } --=20 2.10.0