Skip to content

qapi: Mostly generator cleanups

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Changes since RFC from the cover letter

* Straightforward rebase, R-by retained
* PATCH 06: address Eric's review, R-by dropped

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9tests: Add missing dependencies on $(qapi-py)tests/Makefile+4 -40 replies
2/9qapi: qapi-event.py option -b does nothing, drop itMakefile scripts/qapi-event.py+3 -60 replies
3/9qapi: qapi-commands.py option --type is unused, drop itscripts/qapi-commands.py+31 -350 replies
4/9qapi: Factor parse_command_line() out of the generatorsscripts/qapi-commands.py scripts/qapi-event.py scripts/qapi-types.py +2 more+52 -1250 replies
5/9qapi: Fix generators to report command line errors decentlyscripts/qapi.py+5 -12 replies
6/9qapi: Turn generators' mandatory option -i into an argumentMakefile docs/qapi-code-gen.txt scripts/qapi.py +1 more+21 -231 reply
7/9qapi: Factor open_output(), close_output() out of generatorsscripts/qapi-commands.py scripts/qapi-event.py scripts/qapi-types.py +2 more+172 -2460 replies
8/9qapi: Drop pointless flush() before close()scripts/qapi.py+0 -40 replies
9/9qapi: Inline gen_command_decl_prologue(), gen_command_def_prologue()scripts/qapi-commands.py+24 -340 replies

Reviews trailers per patch

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

PatchEric Blake
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/9] qapi: Mostly generator cleanups

You've seen these patches before, in "[PATCH RFC 00/19] qapi: QMP introspection". Eric has pulled a few into "[PATCH v2 0/3] parse 'null' literal in QMP" and "[PATCH v3 00/14] Fix qapi mangling of downstream names". This series has the remaining ones, except for "[PATCH RFC 19/19] qapi: New QMP command query-schema for QMP schema introspection", which isn't ready.

Based on Luiz's latest pull request plus Eric's "Fix qapi mangling of downstream names".

Changes since RFC:
* Straightforward rebase, R-by retained
* PATCH 06: address Eric's review, R-by dropped

Markus Armbruster (9):
tests: Add missing dependencies on $(qapi-py)
qapi: qapi-event.py option -b does nothing, drop it
qapi: qapi-commands.py option --type is unused, drop it
qapi: Factor parse_command_line() out of the generators
qapi: Fix generators to report command line errors decently
qapi: Turn generators' mandatory option -i into an argument
qapi: Factor open_output(), close_output() out of generators
qapi: Drop pointless flush() before close()
qapi: Inline gen_command_decl_prologue(), gen_command_def_prologue()

 Makefile                 |  14 ++--
 docs/qapi-code-gen.txt   |  10 +--
 scripts/qapi-commands.py | 185 +++++++++++++++--------------------------------
 scripts/qapi-event.py    | 120 +++++++-----------------------
 scripts/qapi-types.py    | 117 ++++++++----------------------
 scripts/qapi-visit.py    | 136 ++++++++++------------------------
 scripts/qapi.py          |  88 ++++++++++++++++++++++
 tests/Makefile           |  16 ++--
 8 files changed, 260 insertions(+), 426 deletions(-)
Signature · 1 line
1.9.3