Skip to content

Correct two minor QMP interface design flaws

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 Latest10 patches 4 repliesIn review
  2. v110 patches 42 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10qapi: Separate type QNull from QObjectinclude/qapi/qmp/qobject.h qapi/qobject-output-visitor.c qobject/json-parser.c +4 more+28 -220 replies
2/10qapi: Use QNull for a more regular visit_type_null()hw/ppc/spapr_drc.c include/qapi/visitor-impl.h include/qapi/visitor.h +12 more+60 -250 replies
3/10qapi: Introduce a first class 'null' typedocs/devel/qapi-code-gen.txt include/qapi/qmp/qobject.h include/qemu/typedefs.h +5 more+31 -80 replies
4/10tests/test-qobject-input-visitor: Drop redundant testtests/test-qobject-input-visitor.c+0 -60 replies
5/10block: Use JSON null instead of "" to disable backing fileblockdev.c qapi/block-core.json tests/qemu-iotests/085 +1 more+38 -90 replies
6/10hmp: Clean up and simplify hmp_migrate_set_parameter()hmp.c+32 -460 replies
7/10migration: Clean up around tls_creds, tls_hostnamehmp.c migration/migration.c qapi-schema.json+11 -100 replies
8/10migration: Add TODO comments on duplication of QAPI_CLONE()migration/migration.c+3 -00 replies
9/10migration: Unshare MigrationParameters struct for nowhmp.c migration/migration.c qapi-schema.json+140 -150 replies
10/10migration: Use JSON null instead of "" to reset parameter to defaulthmp.c migration/migration.c qapi-schema.json+47 -80 replies

Reviews trailers per patch

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

PatchEric BlakeDaniel P. BerrangeKevin WolfDr. David Alan Gilbert
1/10R-b R-b
2/10R-b R-b
3/10R-b R-b
4/10R-b R-b
5/10R-b R-b A-b
6/10R-b R-b R-b
7/10R-b R-b R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/10] Correct two minor QMP interface design flaws

blockdev-add and migrate-set-parameters overload empty strings to mean something entirely different. See my memo "qapi: Stop abusing "special" values for something entirely different" for details.

    Message-ID: <[email protected]>
    https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg04526.html

This series deprecates these usages of "" in favour of JSON null. Because we're so close to the 2.10 freeze, the implementation is intentionally stupid: rewrite null to "" at first opportunity. The proper way to do it would be rewriting "" to null, but that requires fixing up code to work with null. There are TODO comments for that. I'm willing to take care of them in the next development cycle.

v2, because my pull request clashed with Juan's:
* Rebased, non-trivial conflicts in migration/migration.c
* PATCH 02: Commit message typo [Eric]
Fix ppc [patchew]
* PATCH 03: qapi-code-gen.txt update [Eric]
* PATCH 09: Conflict resolution, somewhat ugly
* PATCH 10: Doc improvement [Eric]
Conflict resolution

Markus Armbruster (10):
qapi: Separate type QNull from QObject
qapi: Use QNull for a more regular visit_type_null()
qapi: Introduce a first class 'null' type tests/test-qobject-input-visitor: Drop redundant test
block: Use JSON null instead of "" to disable backing file
hmp: Clean up and simplify hmp_migrate_set_parameter()
migration: Clean up around tls_creds, tls_hostname
migration: Add TODO comments on duplication of QAPI_CLONE()
migration: Unshare MigrationParameters struct for now
migration: Use JSON null instead of "" to reset parameter to default

 blockdev.c                              |  14 +++++
 docs/devel/qapi-code-gen.txt            |  10 +--
 hmp.c                                   |  88 ++++++++++++--------------
 hw/ppc/spapr_drc.c                      |   4 +-
 include/qapi/qmp/qobject.h              |  10 ++-
 include/qapi/visitor-impl.h             |   3 +-
 include/qapi/visitor.h                  |   8 +--
 include/qemu/typedefs.h                 |   1 +
 migration/migration.c                   |  96 +++++++++++++++++++++++++---
 qapi-schema.json                        | 108 ++++++++++++++++++++++++++++----
 qapi/block-core.json                    |  29 ++++++---
 qapi/qapi-clone-visitor.c               |   5 +-
 qapi/qapi-dealloc-visitor.c             |   6 +-
 qapi/qapi-visit-core.c                  |   7 ++-
 qapi/qobject-input-visitor.c            |   6 +-
 qapi/qobject-output-visitor.c           |   5 +-
 qapi/string-input-visitor.c             |   8 ++-
 qapi/string-output-visitor.c            |   3 +-
 qapi/trace-events                       |   2 +-
 qobject/json-parser.c                   |   2 +-
 qobject/qnull.c                         |   8 ++-
 scripts/qapi.py                         |   5 +-
 target/i386/cpu.c                       |   4 +-
 target/ppc/translate_init.c             |   5 +-
 tests/check-qjson.c                     |   6 +-
 tests/check-qnull.c                     |  27 ++++----
 tests/qapi-schema/qapi-schema-test.json |   3 +-
 tests/qapi-schema/qapi-schema-test.out  |   1 +
 tests/qemu-iotests/085                  |   2 +-
 tests/qemu-iotests/139                  |   2 +-
 tests/test-qobject-input-visitor.c      |  24 ++++---
 tests/test-qobject-output-visitor.c     |  13 +++-
 32 files changed, 378 insertions(+), 137 deletions(-)
Signature · 1 line
2.7.5