Skip to content

] qmp: Fixes and cleanups around OOB commands

Markus Armbruster qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest32 patches 5 repliesIn review
  2. v132 patches 52 repliesSuperseded

Changes in v2 from the cover letter

* Rebased (no conflicts)
* PATCH 03
- Spelling fixes [Eric]
- Use the greeting we expect for the release in examples [Eric]
* PATCH 05
- Commit message improvement [Eric]
- Avoid side effect in g_assert() [Eric]
- Clarify in source that migrate-pause is expected to fail [Eric]
* PATCH 07
- Add advice on the need to use "id" with out-of-band commands to documentation [Eric]
- Tweak commit message
* PATCH 08
- Comment tweak [Eric]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32qmp: Say "out-of-band" instead of "Out-Of-Band"docs/devel/qapi-code-gen.txt docs/interop/qmp-spec.txt monitor.c +3 more+12 -120 replies
2/32monitor: Spell "I/O thread" consistently in commentsmonitor.c+17 -170 replies
3/32docs/interop/qmp: Improve OOB documentationdocs/interop/qmp-intro.txt docs/interop/qmp-spec.txt+56 -312 replies
4/32qmp: Document COMMAND_DROPPED design flawmonitor.c qapi/misc.json+9 -00 replies
5/32qmp: Get rid of x-oob-test commandqapi/misc.json qmp.c tests/qmp-test.c+66 -641 reply
6/32tests/qmp-test: Test in-band command doesn't overtaketests/qmp-test.c+2 -00 replies
7/32qmp: Make "id" optional again even in "oob" monitorsdocs/interop/qmp-spec.txt monitor.c+7 -131 reply
8/32tests/test-qga: Demonstrate the guest-agent ignores "id"tests/test-qga.c+20 -00 replies
9/32qmp qemu-ga: Revert change that accidentally made qemu-ga accept "id"monitor.c qapi/qmp-dispatch.c tests/test-qga.c+13 -160 replies
10/32tests/test-qga: Demonstrate the guest-agent ignores "control"tests/test-qga.c+17 -00 replies
11/32qmp qemu-ga: Fix qemu-ga not to accept "control"include/qapi/qmp/dispatch.h monitor.c qapi/qmp-dispatch.c +3 more+24 -240 replies
12/32qmp: Redo how the client requests out-of-band executiondocs/devel/qapi-code-gen.txt docs/interop/qmp-spec.txt monitor.c +3 more+39 -531 reply
13/32qmp: Revert change to handle_qmp_command tracepointmonitor.c+6 -60 replies
14/32qmp: Always free QMPRequest with qmp_request_free()monitor.c+2 -40 replies
15/32qmp: Simplify code around monitor_qmp_dispatch_one()monitor.c+24 -340 replies
16/32tests/qmp-test: Demonstrate QMP errors jumping the queuemonitor.c tests/qmp-test.c+8 -00 replies
17/32qmp: Don't let malformed in-band commands jump the queueinclude/qapi/qmp/dispatch.h monitor.c qapi/qmp-dispatch.c +1 more+30 -670 replies
18/32qmp: Don't let JSON errors jump the queuemonitor.c+15 -80 replies
19/32monitor: Rename use_io_thr to use_io_threadmonitor.c+11 -110 replies
20/32monitor: Peel off @mon_global wrappermonitor.c+29 -310 replies
21/32qobject: New qdict_from_jsonf_nofail()include/qapi/qmp/qjson.h qobject/qjson.c+20 -00 replies
22/32qmp: De-duplicate error response buildinginclude/qapi/qmp/dispatch.h monitor.c qapi/qmp-dispatch.c +1 more+15 -220 replies
23/32qmp: Use QDict * instead of QObject * for response objectsinclude/qapi/qmp/dispatch.h monitor.c qapi/qmp-dispatch.c +2 more+32 -340 replies
24/32qmp: Replace monitor_json_emitter{, raw}() by qmp_{queue, send}_response()monitor.c+10 -110 replies
25/32qmp: Replace get_qmp_greeting() by qmp_greeting()monitor.c+7 -60 replies
26/32qmp: Simplify monitor_qmp_respond()monitor.c+10 -160 replies
27/32qmp: Add some comments around null responsesqapi/qmp-dispatch.c+2 -00 replies
28/32qmp: Switch timestamp_put() to qdict_from_jsonf_nofail()qapi/qmp-event.c+5 -50 replies
29/32qobject: Let qobject_from_jsonf() fail instead of abortqobject/qjson.c+0 -50 replies
30/32qmp: Clean up capability negotiation after commit 02130314d8cmonitor.c+40 -530 replies
31/32monitor: Improve some commentsmonitor.c+45 -550 replies
32/32qapi: Polish command flags documentation in qapi-code-gen.txtdocs/devel/qapi-code-gen.txt+25 -360 replies

Reviews trailers per patch

All 32 patches have a Reviewed-by or Acked-by.

PatchEric BlakePeter Xu
1/32R-b
2/32R-b
3/32R-b
4/32R-b
5/32R-b
6/32R-b
7/32R-b
8/32R-b
9/32R-b
10/32R-b
11/32R-b
12/32R-b
13/32R-b
14/32R-b
15/32R-b
16/32R-b R-b
17/32R-b
18/32R-b
19/32R-b
20/32R-b
21/32R-b
22/32R-b
23/32R-b
24/32R-b
25/32R-b
26/32R-b
27/32R-b
28/32R-b
29/32R-b
30/32R-b
31/32R-b
32/32R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/32] ] qmp: Fixes and cleanups around OOB commands

We're trying to get the out-of-band execution feature ready. This series fixes a number of issues, and marks a design flaw FIXME. More work is needed.

I pushed the series to my public repository for your convenience:
http://repo.or.cz/qemu/armbru.git/shortlog/refs/heads/oob-fixes

v2:
* Rebased (no conflicts)
* PATCH 03
- Spelling fixes [Eric]
- Use the greeting we expect for the release in examples [Eric]
* PATCH 05
- Commit message improvement [Eric]
- Avoid side effect in g_assert() [Eric]
- Clarify in source that migrate-pause is expected to fail [Eric]
* PATCH 07
- Add advice on the need to use "id" with out-of-band commands to documentation [Eric]
- Tweak commit message
* PATCH 08
- Comment tweak [Eric]

Markus Armbruster (32):
qmp: Say "out-of-band" instead of "Out-Of-Band"
monitor: Spell "I/O thread" consistently in comments docs/interop/qmp: Improve OOB documentation
qmp: Document COMMAND_DROPPED design flaw
qmp: Get rid of x-oob-test command
tests/qmp-test: Test in-band command doesn't overtake
qmp: Make "id" optional again even in "oob" monitors tests/test-qga: Demonstrate the guest-agent ignores "id" qmp qemu-ga: Revert change that accidentally made qemu-ga accept "id" tests/test-qga: Demonstrate the guest-agent ignores "control" qmp qemu-ga: Fix qemu-ga not to accept "control"
qmp: Redo how the client requests out-of-band execution
qmp: Revert change to handle_qmp_command tracepoint
qmp: Always free QMPRequest with qmp_request_free()
qmp: Simplify code around monitor_qmp_dispatch_one() tests/qmp-test: Demonstrate QMP errors jumping the queue
qmp: Don't let malformed in-band commands jump the queue
qmp: Don't let JSON errors jump the queue
monitor: Rename use_io_thr to use_io_thread
monitor: Peel off @mon_global wrapper
qobject: New qdict_from_jsonf_nofail()
qmp: De-duplicate error response building
qmp: Use QDict * instead of QObject * for response objects
qmp: Replace monitor_json_emitter{,raw}() by

    qmp_{queue,send}_response()

qmp: Replace get_qmp_greeting() by qmp_greeting()
qmp: Simplify monitor_qmp_respond()
qmp: Add some comments around null responses
qmp: Switch timestamp_put() to qdict_from_jsonf_nofail()
qobject: Let qobject_from_jsonf() fail instead of abort
qmp: Clean up capability negotiation after commit 02130314d8c
monitor: Improve some comments
qapi: Polish command flags documentation in qapi-code-gen.txt

 docs/devel/qapi-code-gen.txt            |  63 ++-
 docs/interop/qmp-intro.txt              |  13 +-
 docs/interop/qmp-spec.txt               |  85 ++--
 include/qapi/qmp/dispatch.h             |   6 +-
 include/qapi/qmp/qjson.h                |   2 +
 monitor.c                               | 507 ++++++++++--------------
 qapi/misc.json                          |  23 +-
 qapi/qmp-dispatch.c                     |  97 ++---
 qapi/qmp-event.c                        |  10 +-
 qga/main.c                              |  18 +-
 qmp.c                                   |  16 -
 qobject/qjson.c                         |  23 +-
 tests/qapi-schema/qapi-schema-test.json |   2 +-
 tests/qmp-test.c                        | 106 +++--
 tests/test-qga.c                        |  34 ++
 tests/test-qmp-cmds.c                   |  23 +-
 16 files changed, 506 insertions(+), 522 deletions(-)
Signature · 1 line
2.17.1