Skip to content

qapi: Purge error_is_set()

Markus Armbruster qemu-devel 2 versions – Applied

Status from this message: Applied to the qmp branch, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 1 replyApplied
  2. v113 patches 19 repliesSuperseded

Changes in v2 from the cover letter

* Fix pasto in commit messages of PATCH 10+11 [Eric]
* Fix logic error in PATCH 12 [Eric]
* Update copyright notice in PATCH 12
* Unbundle PATCH 13

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12qapi: Update qapi-code-gen.txt example to match current codedocs/qapi-code-gen.txt+90 -560 replies
2/12qapi: Normalize marshalling's visitor initialization and cleanupdocs/qapi-code-gen.txt scripts/qapi-commands.py+16 -190 replies
3/12qapi: Remove unused Visitor callbacks start_handle(), end_handle()include/qapi/visitor-impl.h qapi/qapi-visit-core.c+0 -180 replies
4/12qapi: Replace start_optional()/end_optional() by optional()include/qapi/visitor-impl.h include/qapi/visitor.h qapi/opts-visitor.c +5 more+19 -310 replies
5/12qapi-visit.py: Clean up confusing push_indent() / pop_indent() usescripts/qapi-visit.py+14 -180 replies
6/12qapi: Clean up shadowing of parameters and locals in inner scopesscripts/qapi-visit.py+17 -30 replies
7/12qapi-visit.py: Clean up a sloppy use of field prefixscripts/qapi-visit.py+1 -10 replies
8/12qapi: Un-inline visit of implicit structscripts/qapi-visit.py+34 -140 replies
9/12hmp: Call visit_end_struct() after visit_start_struct() succeedshmp.c+8 -80 replies
10/12hw: Don't call visit_end_struct() after visit_start_struct() failshw/timer/mc146818rtc.c hw/virtio/virtio-balloon.c+34 -140 replies
11/12tests: Don't call visit_end_struct() after visit_start_struct() failstests/test-qmp-input-strict.c tests/test-qmp-output-visitor.c tests/test-visitor-serialization.c+39 -150 replies
12/12qapi: Replace uncommon use of the error API by the common onedocs/qapi-code-gen.txt hw/timer/mc146818rtc.c hw/virtio/virtio-balloon.c +7 more+354 -2860 replies

Reviews trailers per patch

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

PatchEric Blake
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-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/12] qapi: Purge error_is_set()

This is the sixth part, covering QAPI and its users. Luiz agreed to take this through his tree.

PATCH 01-08 are preparatory cleanups.

PATCH 09-11 fix misuses of the visitor API in hand-written code. Generated code uses the API correctly.

PATCH 12 converts QAPI and its users to the common use of the error API, purging error_is_set() along the way.

v1 has a PATCH 13 that drops error_is_set(). This depends on all five prior parts of the purge, of which only the first two have been committed already. Luiz asked me to drop it from this series.

My series conflicts with Lluís's "qapi: Allow modularization of QAPI schema files" and Amos's "qapi: fix coding style in generated code", but the conflicts are trivial, and 3-way merge can take care of them.

v2:
* Fix pasto in commit messages of PATCH 10+11 [Eric]
* Fix logic error in PATCH 12 [Eric]
* Update copyright notice in PATCH 12
* Unbundle PATCH 13

Markus Armbruster (12):
qapi: Update qapi-code-gen.txt example to match current code
qapi: Normalize marshalling's visitor initialization and cleanup
qapi: Remove unused Visitor callbacks start_handle(), end_handle()
qapi: Replace start_optional()/end_optional() by optional() qapi-visit.py: Clean up confusing push_indent() / pop_indent() use
qapi: Clean up shadowing of parameters and locals in inner scopes qapi-visit.py: Clean up a sloppy use of field prefix
qapi: Un-inline visit of implicit struct
hmp: Call visit_end_struct() after visit_start_struct() succeeds
hw: Don't call visit_end_struct() after visit_start_struct() fails
tests: Don't call visit_end_struct() after visit_start_struct() fails
qapi: Replace uncommon use of the error API by the common one

 docs/qapi-code-gen.txt             | 165 ++++++++++++++---------
 hmp.c                              |  16 +--
 hw/timer/mc146818rtc.c             |  41 +++++-
 hw/virtio/virtio-balloon.c         |  33 +++--
 include/qapi/visitor-impl.h        |   8 +-
 include/qapi/visitor.h             |   5 +-
 qapi/opts-visitor.c                |   5 +-
 qapi/qapi-visit-core.c             | 259 +++++++++++++++----------------------
 qapi/qmp-input-visitor.c           |   6 +-
 qapi/string-input-visitor.c        |   6 +-
 scripts/qapi-commands.py           |  89 ++++++++-----
 scripts/qapi-visit.py              | 232 +++++++++++++++++++--------------
 tests/test-qmp-input-strict.c      |  28 +++-
 tests/test-qmp-input-visitor.c     |  26 ++--
 tests/test-qmp-output-visitor.c    |  28 +++-
 tests/test-visitor-serialization.c |  26 +++-
 16 files changed, 558 insertions(+), 415 deletions(-)
Signature · 1 line
1.8.1.4