Skip to content

Clean up around qmp() and hmp()

Eric Blake qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest22 patches 41 repliesIn review
  2. v312 patches 31 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22qobject: Accept "%"PRId64 in qobject_from_jsonf()configure qobject/json-lexer.c qobject/json-parser.c +1 more+47 -160 replies
2/22tests: Clean up wait for eventtests/boot-order-test.c tests/libqos/pci-pc.c tests/tco-test.c +3 more+16 -480 replies
3/22tests/libqtest: Clean up how we read the QMP greetingtests/libqtest.c+3 -10 replies
4/22tests: Add assertion for no qmp("")tests/libqtest.c+18 -201 reply
5/22qobject: Simplify qobject_from_jsonv()include/qapi/qmp/qjson.h qobject/qjson.c tests/libqtest.c +1 more+60 -197 replies
6/22qobject: Perform %% interpolation in qobject_from_jsonf()qobject/json-lexer.c qobject/json-parser.c qobject/qjson.c +1 more+80 -292 replies
7/22numa-test: Use hmp()tests/numa-test.c+3 -181 reply
8/22qtest: Avoid passing raw strings through hmp()tests/test-hmp.c+2 -20 replies
9/22qtest: Document calling conventionstests/libqtest.h+25 -150 replies
10/22libqtest: Skip round-trip through QObjecttests/libqtest.c+12 -41 reply
11/22test-qga: Simplify command constructiontests/libqtest.c tests/test-qga.c+111 -1142 replies
12/22libqtest: Change qmp_fd_send() to drop varargstests/libqtest.c tests/libqtest.h tests/test-qga.c+38 -572 replies
13/22libqtest: Add qmp_raw()tests/libqtest.c tests/libqtest.h tests/qmp-test.c+27 -133 replies
14/22libqtest: Separate qmp_discard_response() from commandtests/ahci-test.c tests/boot-order-test.c tests/drive_del-test.c +8 more+50 -833 replies
15/22libqtest: Delete qtest_qmp() wrapperstests/libqtest.c tests/libqtest.h tests/postcopy-test.c+25 -1233 replies
16/22libqtest: Add qmp_cmd() helpertests/ahci-test.c tests/boot-order-test.c tests/ide-test.c +15 more+58 -462 replies
17/22libqtest: Add qmp_args() helpertests/ahci-test.c tests/device-introspect-test.c tests/drive_del-test.c +17 more+167 -2273 replies
18/22tests/libqos/usb: Clean up string interpolation into QMP inputtests/libqos/usb.c+10 -160 replies
19/22libqtest: Add qmp_args_dict() helpertests/device-introspect-test.c tests/libqtest.c tests/libqtest.h+16 -23 replies
20/22tests/libqos/pci: Clean up string interpolation into QMP inputtests/ivshmem-test.c tests/libqos/pci.c tests/libqos/pci.h +1 more+27 -220 replies
21/22libqtest: Drop now-unused qmp()tests/libqtest.c tests/libqtest.h+5 -472 replies
22/22libqtest: Rename qmp_cmd() to qmp()tests/ahci-test.c tests/boot-order-test.c tests/ide-test.c +15 more+36 -360 replies

Reviews trailers per patch

6 of 22 patches have a Reviewed-by or Acked-by.

PatchMarkus ArmbrusterStefan Hajnoczi
1/22R-b
2/22R-b
3/22R-b
4/22R-b
5/22
6/22
7/22R-b
8/22R-b R-b
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22
22/22

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 00/22] Clean up around qmp() and hmp()

Definitely 2.11 material now. v4 is a rather big overhaul of what has been previously posted, rebasing things to make it easier to pass the command name separately from the args when calling qmp() derivatives in the testsuite, and adding support for %% handling to make -Wformat checking more robust.

Also available as a tag at:
git fetch git://repo.or.cz/qemu/ericb.git qapi-qmp-cleanup-v4

Diffstat since v3:

001/22:[0011] [FC] 'qobject: Accept "%"PRId64 in qobject_from_jsonf()' 002/22:[----] [--] 'tests: Clean up wait for event'
003/22:[----] [--] 'tests/libqtest: Clean up how we read the QMP greeting' 004/22:[down] 'tests: Add assertion for no qmp("")'
005/22:[down] 'qobject: Simplify qobject_from_jsonv()'
006/22:[down] 'qobject: Perform %% interpolation in qobject_from_jsonf()' 007/22:[down] 'numa-test: Use hmp()'
008/22:[----] [--] 'qtest: Avoid passing raw strings through hmp()' 009/22:[0022] [FC] 'qtest: Document calling conventions'
010/22:[down] 'libqtest: Skip round-trip through QObject' 011/22:[down] 'test-qga: Simplify command construction'
012/22:[down] 'libqtest: Change qmp_fd_send() to drop varargs' 013/22:[down] 'libqtest: Add qmp_raw()'
014/22:[down] 'libqtest: Separate qmp_discard_response() from command' 015/22:[down] 'libqtest: Delete qtest_qmp() wrappers'
016/22:[down] 'libqtest: Add qmp_cmd() helper'
017/22:[down] 'libqtest: Add qmp_args() helper'
018/22:[0014] [FC] 'tests/libqos/usb: Clean up string interpolation into QMP input' 019/22:[down] 'libqtest: Add qmp_args_dict() helper'
020/22:[0004] [FC] 'tests/libqos/pci: Clean up string interpolation into QMP input' 021/22:[down] 'libqtest: Drop now-unused qmp()'
022/22:[down] 'libqtest: Rename qmp_cmd() to qmp()'

Eric Blake (18):
qobject: Accept "%"PRId64 in qobject_from_jsonf()
tests: Add assertion for no qmp("")
qobject: Simplify qobject_from_jsonv()
qobject: Perform %% interpolation in qobject_from_jsonf()
numa-test: Use hmp()
qtest: Avoid passing raw strings through hmp()
qtest: Document calling conventions
libqtest: Skip round-trip through QObject
test-qga: Simplify command construction
libqtest: Change qmp_fd_send() to drop varargs
libqtest: Add qmp_raw()
libqtest: Separate qmp_discard_response() from command
libqtest: Delete qtest_qmp() wrappers
libqtest: Add qmp_cmd() helper
libqtest: Add qmp_args() helper
libqtest: Add qmp_args_dict() helper
libqtest: Drop now-unused qmp()
libqtest: Rename qmp_cmd() to qmp()

Markus Armbruster (4):
tests: Clean up wait for event
tests/libqtest: Clean up how we read the QMP greeting tests/libqos/usb: Clean up string interpolation into QMP input tests/libqos/pci: Clean up string interpolation into QMP input

 configure                          |  24 ++++
 include/qapi/qmp/qjson.h           |   2 +-
 tests/libqos/pci.h                 |   2 +-
 tests/libqtest.h                   | 163 +++++++++++---------------
 tests/libqtest.c                   | 234 ++++++++++++++-----------------------
 qobject/json-lexer.c               |  24 ++--
 qobject/json-parser.c              |  59 +++++-----
 qobject/qjson.c                    |  49 +++++++-
 tests/ahci-test.c                  |  29 ++---
 tests/boot-order-test.c            |   4 +-
 tests/check-qjson.c                |  57 +++++++++
 tests/device-introspect-test.c     |   7 +-
 tests/drive_del-test.c             |  11 +-
 tests/fdc-test.c                   |  11 +-
 tests/ide-test.c                   |   5 +-
 tests/ivshmem-test.c               |  10 +-
 tests/libqos/ahci.c                |   4 +-
 tests/libqos/libqos.c              |  23 +---
 tests/libqos/pci-pc.c              |  14 +--
 tests/libqos/pci.c                 |  32 ++---
 tests/libqos/usb.c                 |  26 ++---
 tests/numa-test.c                  |  23 +---
 tests/pc-cpu-test.c                |   8 +-
 tests/postcopy-test.c              |  41 +++----
 tests/q35-test.c                   |   2 +-
 tests/qmp-test.c                   |  27 +++--
 tests/qom-test.c                   |  11 +-
 tests/tco-test.c                   |   3 +-
 tests/test-filter-mirror.c         |   3 +-
 tests/test-filter-redirector.c     |   6 +-
 tests/test-hmp.c                   |   4 +-
 tests/test-netfilter.c             | 139 +++++++++-------------
 tests/test-qga.c                   | 220 +++++++++++++++++-----------------
 tests/test-qobject-input-visitor.c |  18 +--
 tests/test-x86-cpuid-compat.c      |   8 +-
 tests/tmp105-test.c                |   9 +-
 tests/usb-hcd-uhci-test.c          |  20 +---
 tests/usb-hcd-xhci-test.c          |  37 ++----
 tests/vhost-user-test.c            |  12 +-
 tests/virtio-blk-test.c            |  20 ++--
 tests/virtio-net-test.c            |  13 +--
 tests/virtio-scsi-test.c           |  13 +--
 tests/virtio-serial-test.c         |  12 +-
 tests/vmgenid-test.c               |   2 +-
 tests/wdt_ib700-test.c             |  37 ++----
 45 files changed, 678 insertions(+), 800 deletions(-)
Signature · 1 line
2.13.3