qemu-option, keyval, vl: switch -object/-M/-accel to keyval parsing
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest25 patches 40 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | qemu-option: clean up id vs. list->merge_listsutil/ | +14 | 6 replies | |
| 2/25 | qemu-option: move help handling to get_opt_name_valueutil/ | +23 | 1 reply | |
| 3/25 | qemu-option: warn for short-form boolean optionsdocs/ tests/ util/ | +25 | 6 replies | |
| 4/25 | keyval: accept escaped commas in implied optioninclude/ tests/ util/ | +92 | 2 replies | |
| 5/25 | keyval: simplify keyval_parse_oneutil/ | +10 | 3 replies | |
| 6/25 | tests: convert check-qom-proplist to keyvaltests/ | +38 | 3 replies | |
| 7/25 | keyval: introduce keyval_parse_intoinclude/ util/ | +34 | 2 replies | |
| 8/25 | hmp: replace "O" parser with keyvalhmp-commands.hx monitor/ | +12 | 7 replies | |
| 9/25 | qom: use qemu_printf to print help for user-creatable objectsqom/ | +7 | 1 reply | |
| 10/25 | hmp: special case help options for object_addinclude/ monitor/ qom/ | +17 | 3 replies | |
| 11/25 | remove -writeconfiginclude/ qemu-options.hx softmmu/ +1 more | +2 | 3 replies | |
| 12/25 | qemu-config: add error propagation to qemu_config_parseblock/ include/ softmmu/ +1 more | +25 | 1 reply | |
| 13/25 | qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdictutil/ | +2 | 0 replies | |
| 14/25 | qemu-config: parse configuration files to a QDictinclude/ softmmu/ util/ | +68 | 0 replies | |
| 15/25 | vl: plumb keyval-based options into -set and -readconfiginclude/ include/ include/ +3 more | +187 | 2 replies | |
| 16/25 | qom: do not modify QDict argument in user_creatable_add_dictinclude/ qom/ | +8 | 0 replies | |
| 17/25 | qemu-io: use keyval for -object parsingqemu-io.c | +13 | 0 replies | |
| 18/25 | qemu-nbd: use keyval for -object parsingqemu-nbd.c | +13 | 0 replies | |
| 19/25 | qemu-img: use keyval for -object parsingqemu-img.c | +52 | 0 replies | |
| 20/25 | qemu: use keyval for -object parsinginclude/ qom/ softmmu/ | +48 | 0 replies | |
| 21/25 | storage-daemon: do not register the "object" group with QemuOptsstorage-daemon/ | +0 | 0 replies | |
| 22/25 | qom: export more functions for use with non-UserCreatable objectsinclude/ qom/ | +57 | 0 replies | |
| 23/25 | vl: switch -M parsing to keyvalsoftmmu/ | +132 | 0 replies | |
| 24/25 | qemu-option: remove now-dead codeinclude/ tests/ util/ | +10 | 0 replies | |
| 25/25 | vl: switch -accel parsing to keyvalaccel/ include/ softmmu/ | +67 | 0 replies |
Reviews trailers per patch
3 of 25 patches have a Reviewed-by or Acked-by.
| Patch | Kevin Wolf | Markus Armbruster |
|---|---|---|
| 1/25 | R-b | |
| 2/25 | R-b | |
| 3/25 | ||
| 4/25 | ||
| 5/25 | ||
| 6/25 | ||
| 7/25 | ||
| 8/25 | ||
| 9/25 | R-b | |
| 10/25 | ||
| 11/25 | ||
| 12/25 | ||
| 13/25 | ||
| 14/25 | ||
| 15/25 | ||
| 16/25 | ||
| 17/25 | ||
| 18/25 | ||
| 19/25 | ||
| 20/25 | ||
| 21/25 | ||
| 22/25 | ||
| 23/25 | ||
| 24/25 | ||
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/25] qemu-option, keyval, vl: switch -object/-M/-accel to keyval parsing
This series switches -object, -M and -accel from QemuOpts to keyval. Monitor commands device_add and netdev_add are also switched to keyval, though -device and -netdev for now are not.
Along the way, the syntax of keyval and QemuOpts becomes more consistent and support for keyval-based options is added to -readconfig. -writeconfig instead is removed (see patch 13 for rationale).
The reason to do this is:
- to make qemu-io, qemu-nbd, qemu-img and QEMU's parsing of -object consistent with qemu-storage-daemon's
- to allow using compound properties in -object, -M and -accel
Patch 1-3: make QemuOpts parsing a bit more restrictive, warning for short-form boolean options and removing weird ways to request help such as "help=foo" or "no?".
Patch 4-10: let keyval accept escaped commas in implied options, switch comma-separated syntax for HMP from QemuOpts to keyval, add help support to object_add
Patch 11-16: plumbing for reading keyval-based options in vl.c, including -set and -readconfig. The patches up to this point are the ones that I'd like to get a relatively fast review, since the remaining nine are more "boring".
Patch 17-21: switch -object to keyval everywhere
Patch 22-25: switch -M and -accel to keyval
Based-on: <[email protected]>
Paolo Bonzini (25):
qemu-option: clean up id vs. list->merge_lists
qemu-option: move help handling to get_opt_name_value
qemu-option: warn for short-form boolean options
keyval: accept escaped commas in implied option
keyval: simplify keyval_parse_one
tests: convert check-qom-proplist to keyval
keyval: introduce keyval_parse_into
hmp: replace "O" parser with keyval
qom: use qemu_printf to print help for user-creatable objects
hmp: special case help options for object_add
remove -writeconfig
qemu-config: add error propagation to qemu_config_parse
qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdict
qemu-config: parse configuration files to a QDict
vl: plumb keyval-based options into -set and -readconfig
qom: do not modify QDict argument in user_creatable_add_dict
qemu-io: use keyval for -object parsing
qemu-nbd: use keyval for -object parsing
qemu-img: use keyval for -object parsing
qemu: use keyval for -object parsing
storage-daemon: do not register the "object" group with QemuOpts
qom: export more functions for use with non-UserCreatable objects
vl: switch -M parsing to keyval
qemu-option: remove now-dead code
vl: switch -accel parsing to keyval
accel/accel.c | 6 + block/blkdebug.c | 3 +- docs/system/deprecated.rst | 6 + hmp-commands.hx | 6 +- include/block/qdict.h | 2 - include/qapi/qmp/qdict.h | 3 + include/qemu/config-file.h | 9 +- include/qemu/help_option.h | 11 - include/qemu/option.h | 6 +- include/qom/object.h | 21 + include/qom/object_interfaces.h | 68 +-- include/sysemu/accel.h | 1 + monitor/hmp-cmds.c | 22 +- monitor/hmp.c | 20 +- qemu-img.c | 258 +++------- qemu-io.c | 42 +- qemu-nbd.c | 42 +- qemu-options.hx | 13 +- qom/object_interfaces.c | 152 ++---- softmmu/vl.c | 673 ++++++++++++++------------- storage-daemon/qemu-storage-daemon.c | 10 - tests/check-qom-proplist.c | 58 ++- tests/test-keyval.c | 58 ++- tests/test-qemu-opts.c | 37 +- util/keyval.c | 231 +++++---- util/qemu-config.c | 141 +++--- util/qemu-option.c | 126 +++-- 27 files changed, 918 insertions(+), 1107 deletions(-)
Signature · 1 line
2.26.2