Skip to content

qapi: convert remaining "simple" intro sections

John Snow linux-cxl qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/27 of 10 patches 13 repliesIn review
  2. v5 Latest7 patches 2 repliesIn review
  3. v47 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches1 replySuperseded
v2 posting 1/27 patches1 replySuperseded
v19 patches11 repliesSuperseded

Changes in v5 from the cover letter

- Make insert algorithm simpler
- Excise one case from patch 7/7, saving for a later series.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7qapi: convert remaining simple intros for block-export.jsonqapi/block-export.json+8 -110 replies
2/7qapi: convert remaining simple intros for cxl.jsonqapi/cxl.json+5 -91 reply
3/7qapi: convert remaining simple intros for machine.jsonqapi/machine.json+1 -20 replies
4/7qapi: convert remaining simple intros for block-core.jsonqapi/block-core.json+19 -260 replies
5/7qapi/parser: fix intermediate "intro" detectionscripts/qapi/parser.py+8 -00 replies
6/7qapi: convert intro sections with "TODO" markersqapi/machine.json qapi/migration.json qapi/net.json +1 more+8 -230 replies
7/7qapi: convert intro sections followed by notes/examplesqapi/migration.json qapi/misc.json qapi/run-state.json+11 -140 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarkus ArmbrusterJonathan Cameron
SeriesR-b
1/7
2/7R-b
3/7
4/7
5/7
6/7
7/7

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

Read the v5 thread

Cover letter [PATCH v5 0/7] qapi: convert remaining "simple" intro sections

v5:
- Make insert algorithm simpler
- Excise one case from patch 7/7, saving for a later series.
v4:
- :(
- :( :(
- Fix 'Fix python typing issue with hotfix from below ...'
v3:
- Fix python typing issue with hotfix from below ...
- Rebase on top of armbru/qapi-not-next
v2:
- Fix stub insertion algorithm for some "TODO:" replacement cases

Hello, this work converts the remaining "simple" intro sections in the QAPI schema to use the new syntax. This is part of our ongoing effort to add the mythical "inliner" to our generated QMP documentation.

This batch covers structures that *are* likely to be inlined, and thus have introductory paragraphs that are quite likely to be omitted when the member documentation is copied into other contexts (e.g. as arguments for command documentation, or as members of a branch for commands that accept union arguments.)

"simple" here is a non-technical distinction that means a single paragraph of text followed by an existing section boundary that naturally already delineates what comprises the intro.

If you are a non-QAPI maintainer who has been CC'd on this series, you may wish to review what information is being codified as the "intro" (The indented paragraph) and keep in mind that in the future, this text may not be visible to the end-user reading our QMP documentation if this structure is utilized as the 'base' for another struct, used as the arguments for a command or event, or used as branch of a union. This series keeps it pretty simple, and every conversion herein is being codified as "the intro", i.e. "not crucial to understanding the behavior of the members of this struct".

This is the last of the brain-dead, simple conversions apart from any new cases that may have been merged during the development of this series. The remaining patches all convert or split longer paragraphs and require more scrutiny.

We're almost back to reviewing actual code! Hang in there, everybody.

John Snow (7):
qapi: convert remaining simple intros for block-export.json
qapi: convert remaining simple intros for cxl.json
qapi: convert remaining simple intros for machine.json
qapi: convert remaining simple intros for block-core.json qapi/parser: fix intermediate "intro" detection
qapi: convert intro sections with "TODO" markers
qapi: convert intro sections followed by notes/examples

 qapi/block-core.json   | 45 ++++++++++++++++++------------------------
 qapi/block-export.json | 19 ++++++++----------
 qapi/cxl.json          | 14 +++++--------
 qapi/machine.json      | 10 +++-------
 qapi/migration.json    | 25 +++++++++--------------
 qapi/misc.json         |  3 +--
 qapi/net.json          |  9 +++------
 qapi/run-state.json    |  7 +++----
 qapi/yank.json         |  5 +----
 scripts/qapi/parser.py |  8 ++++++++
 10 files changed, 60 insertions(+), 85 deletions(-)
Signature · 1 line
2.55.0