Skip to content

qapi-schema: Reorganize along maintenance boundaries

Markus Armbruster qemu-devel 2 versions Applied

Status from this message: Applied to qapi-next. Prone to stupid conflicts, better move fast...

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 26 repliesApplied
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Title changed from "qapi-schema: Generated doc structure fixes"
* PATCH 01: say "source order" rather than "textual order"
* PATCH 02: no change
* PATCH 03: rocker.json included before event.json to reduce churn
* PATCH 04-16: new

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/16qapi-schema: Document how generated documentation is orderedqapi-schema.json+6 -110 replies
2/16qapi-schema: Introspection doc is in the wrong section, fixqapi/introspect.json+4 -20 replies
3/16qapi-schema: Rocker doc section contains unrelated stuff, fixqapi-schema.json+1 -30 replies
4/16qapi-schema: Collect sockets stuff in qapi/sockets.jsonMAINTAINERS Makefile qapi-schema.json +3 more+164 -1531 reply
5/16qapi-schema: Collect run state stuff in qapi/run-state.jsonMAINTAINERS Makefile qapi-schema.json +2 more+355 -3461 reply
6/16qapi-schema: Collect char device stuff in qapi/char.jsonMAINTAINERS Makefile qapi-schema.json +2 more+541 -5312 replies
7/16qapi-schema: Collect net device stuff in qapi/net.jsonMAINTAINERS Makefile qapi-schema.json +2 more+709 -6981 reply
8/16qapi-schema: Collect UI stuff in qapi/ui.jsonMAINTAINERS Makefile qapi-schema.json +2 more+982 -9592 replies
9/16qapi-schema: Collect migration stuff in qapi/migration.jsonMAINTAINERS Makefile qapi-schema.json +3 more+1104 -10934 replies
10/16qapi-schema: Collect transaction stuff in qapi/transaction.jsonMAINTAINERS Makefile qapi-schema.json +1 more+161 -1501 reply
11/16qapi-schema: Collect TPM stuff in qapi/tpm.jsonMAINTAINERS Makefile qapi-schema.json +1 more+147 -1314 replies
12/16qapi-schema: Move block events from event.json to block.jsonqapi/block.json qapi/event.json+68 -682 replies
13/16qapi-schema: Fold event.json back into qapi-schema.jsonMakefile qapi-schema.json qapi/event.json+134 -1401 reply
14/16qapi-schema: Make block-core.json self-containedqapi-schema.json qapi/block-core.json qapi/common.json+15 -141 reply
15/16qapi-schema: Move queries from common.json to qapi-schema.jsonqapi-schema.json qapi/common.json+103 -1032 replies
16/16qapi-schema: Improve section headingsqapi-schema.json qapi/block-core.json qapi/block.json +3 more+7 -81 reply

Reviews trailers per patch

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

PatchMarc-André LureauAlberto GarciaGerd HoffmannDr. David Alan Gilbert
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b R-b
9/16R-b R-b
10/16R-b
11/16R-b
12/16R-b R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-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/16] qapi-schema: Reorganize along maintenance boundaries
Cc "Daniel P. Berrange" <[email protected]>
Cc Alberto Garcia <[email protected]>
Cc Dr. David Alan Gilbert <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc Jason Wang <[email protected]>
Cc Juan Quintela <[email protected]>
Cc Marc-André Lureau <[email protected]>
Cc Paolo Bonzini <[email protected]>

Much of the QAPI schema really belongs to a subsystem, but MAINTAINERS can't tell when it's all in a big ball of mud (qapi-schema.json) with a small ball of mud (event.json) on the side.

Create sub-schemas for the subsystems with the most substantial QAPI footprint in the mud. The big ball shrinks by half, and the small ball goes away.

Bonus: the generated documentation's structure makes more sense now. It needs further improvement (see last patch), but it's a start.

I generally kept the order intact when moving source code. It may be smarter to reorder it for improved legibility (both source and generated doc). Subsystem maintainers, please tell me whether you'd like things reordered.

v2:
* Title changed from "qapi-schema: Generated doc structure fixes"
* PATCH 01: say "source order" rather than "textual order"
* PATCH 02: no change
* PATCH 03: rocker.json included before event.json to reduce churn
* PATCH 04-16: new

Markus Armbruster (16):
qapi-schema: Document how generated documentation is ordered
qapi-schema: Introspection doc is in the wrong section, fix
qapi-schema: Rocker doc section contains unrelated stuff, fix
qapi-schema: Collect sockets stuff in qapi/sockets.json
qapi-schema: Collect run state stuff in qapi/run-state.json
qapi-schema: Collect char device stuff in qapi/char.json
qapi-schema: Collect net device stuff in qapi/net.json
qapi-schema: Collect UI stuff in qapi/ui.json
qapi-schema: Collect migration stuff in qapi/migration.json
qapi-schema: Collect transaction stuff in qapi/transaction.json
qapi-schema: Collect TPM stuff in qapi/tpm.json
qapi-schema: Move block events from event.json to block.json
qapi-schema: Fold event.json back into qapi-schema.json
qapi-schema: Make block-core.json self-contained
qapi-schema: Move queries from common.json to qapi-schema.json
qapi-schema: Improve section headings

 MAINTAINERS           |   16 +
 Makefile              |   15 +-
 qapi-schema.json      | 3866 +++----------------------------------------------
 qapi/block-core.json  |    5 +-
 qapi/block.json       |   73 +-
 qapi/char.json        |  538 +++++++
 qapi/common.json      |  132 +-
 qapi/crypto.json      |    2 +-
 qapi/event.json       |  646 ---------
 qapi/introspect.json  |    6 +-
 qapi/migration.json   | 1085 ++++++++++++++
 qapi/net.json         |  706 +++++++++
 qapi/run-state.json   |  352 +++++
 qapi/sockets.json     |  147 ++
 qapi/tpm.json         |  137 ++
 qapi/trace.json       |    2 +-
 qapi/transaction.json |  158 ++
 qapi/ui.json          |  977 +++++++++++++
 18 files changed, 4477 insertions(+), 4386 deletions(-)
 create mode 100644 qapi/char.json
 delete mode 100644 qapi/event.json
 create mode 100644 qapi/migration.json
 create mode 100644 qapi/net.json
 create mode 100644 qapi/run-state.json
 create mode 100644 qapi/sockets.json
 create mode 100644 qapi/tpm.json
 create mode 100644 qapi/transaction.json
 create mode 100644 qapi/ui.json
Signature · 1 line
2.7.5