Skip to content

block: Command line option -blockdev

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 Latest24 patches 13 repliesIn review
  2. v124 patches 47 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24test-qemu-opts: Cover qemu_opts_parse() of "no"tests/test-qemu-opts.c+5 -00 replies
2/24tests: Fix gcov-files-test-qemu-opts-y, gcov-files-test-logging-ytests/Makefile.include+2 -20 replies
3/24keyval: New keyval_parse()include/qemu/option.h tests/.gitignore tests/Makefile.include +3 more+419 -04 replies
4/24qapi: qobject input visitor variant for use with keyval_parse()include/qapi/qobject-input-visitor.h qapi/qobject-input-visitor.c tests/test-qobject-input-visitor.c+358 -50 replies
5/24test-keyval: Cover use with qobject input visitortests/test-keyval.c+312 -00 replies
6/24qapi: Factor out common part of qobject input visitor creationqapi/qobject-input-visitor.c+26 -350 replies
7/24qapi: Factor out common qobject_input_get_keyval()qapi/qobject-input-visitor.c+35 -520 replies
8/24qobject: Propagate parse errors through qobject_from_jsonv()include/qapi/qmp/qjson.h qobject/qjson.c tests/libqtest.c +1 more+12 -70 replies
9/24libqtest: Fix qmp() & friends to abort on JSON parse errorstests/libqtest.c+2 -10 replies
10/24qjson: Abort earlier on qobject_from_jsonf() misuseqobject/qjson.c+1 -10 replies
11/24test-qobject-input-visitor: Abort earlier on bad test inputtests/test-qobject-input-visitor.c+1 -10 replies
12/24qobject: Propagate parse errors through qobject_from_json()block.c include/qapi/qmp/qjson.h monitor.c +3 more+37 -370 replies
13/24block: More detailed syntax error reporting for JSON filenamesblock.c+7 -20 replies
14/24check-qjson: Test errors from qobject_from_json()tests/check-qjson.c+56 -320 replies
15/24test-visitor-serialization: Pass &error_abort to qobject_from_json()tests/test-visitor-serialization.c+1 -10 replies
16/24monitor: Assert qmp_schema_json[] is sanemonitor.c+1 -10 replies
17/24test-qapi-util: New, covering qapi/qapi-util.ctests/.gitignore tests/Makefile.include tests/test-qapi-util.c+55 -00 replies
18/24qapi: New parse_qapi_name()include/qapi/util.h qapi/qapi-util.c tests/test-qapi-util.c+83 -01 reply
19/24keyval: Restrict key components to valid QAPI namestests/test-keyval.c util/keyval.c+18 -40 replies
20/24qapi: New qobject_input_visitor_new_str() for convenienceinclude/qapi/qobject-input-visitor.h qapi/qobject-input-visitor.c+48 -01 reply
21/24block: Initial implementation of -blockdevqemu-options.hx vl.c+46 -01 reply
22/24qapi: Improve how keyval input visitor reports unexpected dictsqapi/qobject-input-visitor.c+22 -40 replies
23/24docs/qapi-code-gen.txt: Clarify naming rulesdocs/qapi-code-gen.txt+39 -220 replies
24/24keyval: Support listsqapi/qobject-input-visitor.c tests/test-keyval.c util/keyval.c+298 -135 replies

Reviews trailers per patch

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

PatchKevin WolfEric Blake
1/24R-b
2/24R-b R-b
3/24R-b R-b
4/24R-b
5/24R-b
6/24R-b
7/24R-b
8/24R-b
9/24R-b
10/24R-b
11/24R-b
12/24R-b R-b
13/24R-b
14/24R-b
15/24R-b
16/24R-b
17/24R-b
18/24R-b R-b
19/24R-b
20/24R-b
21/24R-b R-b
22/24R-b
23/24R-b
24/24R-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/24] block: Command line option -blockdev

Actually, the command line option is the least part of this series. Its bulk is about building infrastructure and getting errors out of the JSON parser[*]. The latter part could be spun out in its own series, if that helps. We'll see.

The design of the command line interface was discussed here:
Subject: Non-flat command line option argument syntax
Message-ID: <[email protected]>
https://lists.gnu.org/archive/html/qemu-devel/2017-02/msg00555.html

This series is based on "[PULL 00/26] QAPI patches for 2017-02-28". Available as branch blockdev-cmdline in my public repo
<http://repo.or.cz/w/qemu/armbru.git>.

[*] Who'd have thunk anyone actually wants to know what's wrong with his JSON!

v2: Address review by Eric and Kevin
PATCH 03: Comment fixes, memory leak plugged
PATCH 05: Comment fix
PATCH 08+12: Announce followup work in commit message PATCH 18: Comment fix
PATCH 20: A missing test for failure fixed
PATCH 21: Option help text improved, loop to call qmp_blockdev_add()
moved to the right place
PATCH 22: Commit message fix
PATCH 23: Commit message fix, qobject_input_get_keyval() fixed to set
v->keyval, memory leaks plugged, test case tweaked to cover leading zero, keyval_listify() thinko fixed (this is the only non-trivial change in v2)

Daniel P. Berrange (1):
qapi: qobject input visitor variant for use with keyval_parse()

Markus Armbruster (23):
test-qemu-opts: Cover qemu_opts_parse() of "no"
tests: Fix gcov-files-test-qemu-opts-y, gcov-files-test-logging-y
keyval: New keyval_parse()
test-keyval: Cover use with qobject input visitor
qapi: Factor out common part of qobject input visitor creation
qapi: Factor out common qobject_input_get_keyval()
qobject: Propagate parse errors through qobject_from_jsonv()
libqtest: Fix qmp() & friends to abort on JSON parse errors
qjson: Abort earlier on qobject_from_jsonf() misuse test-qobject-input-visitor: Abort earlier on bad test input
qobject: Propagate parse errors through qobject_from_json()
block: More detailed syntax error reporting for JSON filenames
check-qjson: Test errors from qobject_from_json() test-visitor-serialization: Pass &error_abort to qobject_from_json()
monitor: Assert qmp_schema_json[] is sane
test-qapi-util: New, covering qapi/qapi-util.c
qapi: New parse_qapi_name()
keyval: Restrict key components to valid QAPI names
qapi: New qobject_input_visitor_new_str() for convenience
block: Initial implementation of -blockdev
qapi: Improve how keyval input visitor reports unexpected dicts docs/qapi-code-gen.txt: Clarify naming rules
keyval: Support lists

 block.c                              |   9 +-
 docs/qapi-code-gen.txt               |  61 ++--
 include/qapi/qmp/qjson.h             |   5 +-
 include/qapi/qobject-input-visitor.h |  21 ++
 include/qapi/util.h                  |   2 +
 include/qemu/option.h                |   3 +
 monitor.c                            |   2 +-
 qapi/qapi-util.c                     |  47 +++
 qapi/qobject-input-visitor.c         | 214 +++++++++++-
 qemu-options.hx                      |   7 +
 qobject/qjson.c                      |  14 +-
 tests/.gitignore                     |   2 +
 tests/Makefile.include               |  10 +-
 tests/check-qjson.c                  |  88 +++--
 tests/libqtest.c                     |   3 +-
 tests/test-keyval.c                  | 624 +++++++++++++++++++++++++++++++++++
 tests/test-qapi-util.c               |  85 +++++
 tests/test-qemu-opts.c               |   5 +
 tests/test-qobject-input-visitor.c   | 190 ++++++++++-
 tests/test-visitor-serialization.c   |   2 +-
 util/Makefile.objs                   |   1 +
 util/keyval.c                        | 394 ++++++++++++++++++++++
 vl.c                                 |  39 +++
 23 files changed, 1746 insertions(+), 82 deletions(-)
 create mode 100644 tests/test-keyval.c
 create mode 100644 tests/test-qapi-util.c
 create mode 100644 util/keyval.c
Signature · 1 line
2.7.4