Received: from eggs.gnu.org ([2001:4830:134:3::10]:38391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0Fi-0002Wf-WE for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0Ff-0003vD-9p for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0Ff-0003uM-3d for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:07 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 A82E13D978 for ; Thu, 22 Sep 2016 09:25:06 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:22:56 +0400 Message-Id: <20160922092305.2895-22-marcandre.lureau@redhat.com> In-Reply-To: <20160922092305.2895-1-marcandre.lureau@redhat.com> References: <20160922092305.2895-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 21/30] qmp-commands: move 'dump-guest-memory' 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?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- docs/qmp-commands.txt | 30 ------------------------------ qapi-schema.json | 8 ++++++++ 2 files changed, 8 insertions(+), 30 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 0359516..0fc4cde 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -180,36 +180,6 @@ Example: -> { "execute": "migrate-set-cache-size", "arguments": { "value": 536870= 912 } } <- { "return": {} } =20 -dump - - -Dump guest memory to file. The file can be processed with crash or gdb. - -Arguments: - -- "paging": do paging to get guest's memory mapping (json-bool) -- "protocol": destination file(started with "file:") or destination file - descriptor (started with "fd:") (json-string) -- "detach": if specified, command will return immediately, without waiti= ng - for the dump to finish. The user can track progress using - "query-dump". (json-bool) -- "begin": the starting physical address. It's optional, and should be s= pecified - with length together (json-int) -- "length": the memory size, in bytes. It's optional, and should be spec= ified - with begin together (json-int) -- "format": the format of guest memory dump. It's optional, and can be - elf|kdump-zlib|kdump-lzo|kdump-snappy, but non-elf formats w= ill - conflict with paging and filter, ie. begin and length (json-= string) - -Example: - --> { "execute": "dump-guest-memory", "arguments": { "protocol": "fd:dump= " } } -<- { "return": {} } - -Notes: - -(1) All boolean arguments default to false - query-dump-guest-memory-capability ---------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index 19bb04d..3c292d1 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3111,9 +3111,17 @@ # @length is not allowed to be specified with non-elf @format a= t the # same time (since 2.0) # +# Note: All boolean arguments default to false +# # Returns: nothing on success # # Since: 1.2 +# +# Example: +# +# -> { "execute": "dump-guest-memory", "arguments": { "protocol": "fd:du= mp" } } +# <- { "return": {} } +# ## { 'command': 'dump-guest-memory', 'data': { 'paging': 'bool', 'protocol': 'str', '*detach': 'bool', --=20 2.10.0