[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/32] docs/interop/qmp: Improve OOB documentati
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 03/32] docs/interop/qmp: Improve OOB documentation |
Date: |
Mon, 2 Jul 2018 15:54:13 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 07/02/2018 11:21 AM, Markus Armbruster wrote:
OOB documentation is spread over qmp-spec.txt sections 2.2.1
Capabilities and 2.3 Issuing Commands. The amount of detail is a bit
distracting there. Move the meat of the matter to new section 2.3.1
Out of band execution.
Throw in a few other improvements while there:
* 2.2 Server Greetung: Drop advice to search entire capabilities
s/Greetung/Greeting/
array; should be obvious.
* 3. QMP Examples
- 3.1 Server Greeting: Update greeting to current one. Now shows
capability "oob". Update qmp-intro.txt likewise.
- 3.2 Capabilities negotiation: Show client accepting capability
"oob".
- 3.7 Out-of-band execution: New.
Signed-off-by: Markus Armbruster <address@hidden>
---
docs/interop/qmp-intro.txt | 13 +++----
docs/interop/qmp-spec.txt | 74 +++++++++++++++++++++++++-------------
2 files changed, 56 insertions(+), 31 deletions(-)
diff --git a/docs/interop/qmp-intro.txt b/docs/interop/qmp-intro.txt
index 900d69d612..3dafa35ea6 100644
--- a/docs/interop/qmp-intro.txt
+++ b/docs/interop/qmp-intro.txt
@@ -52,13 +52,14 @@ Escape character is '^]'.
"QMP": {
"version": {
"qemu": {
- "micro": 50,
- "minor": 6,
- "major": 1
- },
- "package": ""
- },
+ "micro": 50,
+ "minor": 12,
+ "major": 2
+ },
+ "package": "v2.12.0-1763-g4e022f5ccd"
Obviously tested during development rather than on a released version,
but that's reasonable.
+2.3.1 Out-of-band execution
+---------------------------
+
+The server normally reads, executes and responds to one command after
+the other. The client therefore receives command respones in issue
s/respones/responses/
+order.
+
+With out-of-band execution enabled via capability negotiation (section
+4.), the server reads and queues commands as they arrive. It executes
+commands from the queue one after the other. Commands executed
+out-of-band jump the queue: they command get executed right away,
s/they command get/the command gets/
+possibly overtaking prior in-band commands. The client may therefore
+receive such a command's response before responses from prior in-band
+commands.
+
+To execute a command out-of-band, the client puts "run-oob": true into
+execute's member "control".
Are we still hoping for a later patch to ditch "control" and add
"exec-oob"? But if we do that, building it on top of this patch (with
appropriate doc tweaks at that time) makes sense.
+3.7 Out-of-band execution
+-------------------------
+
+C: { "execute": "migrate-pause", "id": 42, "control": { "run-oob": true } }
+S: { "id": 42,
+ "error": { "class": "GenericError",
+ "desc": "migrate-pause is currently only supported during postcopy-active
state" } }
Different from a successful command, but works for me.
With the typo fixes,
Reviewed-by: Eric Blake <address@hidden>
I don't know if this patch will make it in time for 3.0 soft freeze, but
resolving missing documentation feels like enough of a bug fix to be
included during freeze as needed.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- Re: [Qemu-devel] [PATCH 17/32] qmp: Don't let malformed in-band commands jump the queue, (continued)
- [Qemu-devel] [PATCH 24/32] qmp: Replace monitor_json_emitter{, raw}() by qmp_{queue, send}_response(), Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 32/32] qapi: Polish command flags documentation in qapi-code-gen.txt, Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 02/32] monitor: Spell "I/O thread" consistently in comments, Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 23/32] qmp: Use QDict * instead of QObject * for response objects, Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 03/32] docs/interop/qmp: Improve OOB documentation, Markus Armbruster, 2018/07/02
- Re: [Qemu-devel] [PATCH 03/32] docs/interop/qmp: Improve OOB documentation,
Eric Blake <=
- [Qemu-devel] [PATCH 20/32] monitor: Peel off @mon_global wrapper, Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 22/32] qmp: De-duplicate error response building, Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 28/32] qmp: Switch timestamp_put() to qdict_from_jsonf_nofail(), Markus Armbruster, 2018/07/02
- [Qemu-devel] [PATCH 30/32] qmp: Clean up capability negotiation after commit 02130314d8c, Markus Armbruster, 2018/07/02