[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' doc to schema
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' doc to schema |
Date: |
Tue, 13 Sep 2016 17:02:09 +0400 |
Notice that "cpu" argument is actually "cpu-index" in the json.
Signed-off-by: Marc-André Lureau <address@hidden>
---
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:
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 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'} }
--
2.10.0
- [Qemu-devel] [PATCH 20/30] qmp-commands: move 'query-iothreads' doc to schema, (continued)
- [Qemu-devel] [PATCH 20/30] qmp-commands: move 'query-iothreads' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 23/30] qmp-commands: move 'query-balloon' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 21/30] qmp-commands: move 'query-vnc' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-spice' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 25/30] qmp-commands: move 'quit' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 24/30] qmp-commands: move 'query-pci' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 27/30] qmp-commands: move 'system_reset' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 26/30] qmp-commands: move 'stop' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 28/30] qmp-commands: move 'system_powerdown' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 29/30] qmp-commands: move 'cpu-add' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' doc to schema,
Marc-André Lureau <=
- Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5), Markus Armbruster, 2016/09/13