From 30831b63dac44e2cac6779a7d2db34daa560b142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 13:05:26 +0200 Subject: [PATCH] qmp-commands: move 'memsave' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Notice that "cpu" argument is actually "cpu-index" in the json. Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- 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 215239fd92..df988abb5d 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -219,26 +219,6 @@ Example: Note: CPUs' indexes are obtained with the 'query-cpus' command. -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 -------- diff --git a/qapi-schema.json b/qapi-schema.json index 29ff705129..64acc1c228 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2231,6 +2231,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'} }