Skip to content

qmp qga: Purge error_is_set()

Markus Armbruster qemu-devel 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest14 patches 7 repliesApplied

Changes in v3 from the cover letter

- PATCH 02/15 peformed two unwanted renames, 03/15 reverted them; drop all that. Since this effectively squashes 03 into 02, I took the liberty to retain Eric's R-by.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/14qmp hmp: Consistently name Error * objects err, and not errpdocs/writing-qmp-commands.txt hmp.c include/qapi/qmp/dispatch.h +6 more+240 -2400 replies
2/14qga: Consistently name Error ** objects errp, and not errqga/commands-posix.c qga/commands-win32.c qga/commands.c +2 more+160 -1540 replies
3/14qmp: Consistently name Error ** objects errp, and not errqmp.c+8 -80 replies
4/14error: Consistently name Error ** objects errp, and not errinclude/qapi/error.h util/error.c+20 -150 replies
5/14qga: Use return values instead of error_is_set(errp)qga/commands-posix.c qga/main.c+4 -30 replies
6/14hmp: Guard against misuse of hmp_handle_error()hmp.c+2 -10 replies
7/14qapi: Drop redundant, unclean error_is_set()qapi/qmp-dispatch.c+1 -20 replies
8/14tests/qapi-schema: Drop superfluous error_is_set()tests/test-qmp-input-visitor.c+12 -130 replies
9/14qapi: Clean up fragile use of error_is_set()qapi/qmp-dispatch.c+8 -70 replies
10/14qga: Clean up fragile use of error_is_set()qga/commands-posix.c qga/commands-win32.c+40 -200 replies
11/14qga: Drop superfluous error_is_set()qga/commands-win32.c+0 -100 replies
12/14qemu-option: Clean up fragile use of error_is_set()util/qemu-option.c+1 -10 replies
13/14dump: Drop pointless error_is_set(), DumpState member errpdump.c+2 -40 replies
14/14qmp: Don't use error_is_set() to suppress additional errorsqmp.c+11 -214 replies

Reviews trailers per patch

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

PatchEric BlakeMichael Roth
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b R-b
6/14R-b
7/14R-b R-b
8/14R-b R-b
9/14R-b R-b
10/14R-b R-b
11/14R-b R-b
12/14R-b
13/14R-b
14/14R-b

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/14] qmp qga: Purge error_is_set()

I got a private branch getting rid of it entirely. This is the fifth part, covering QMP and the guest agent up to the point where I start messing with the QAPI code generators. That's left for the final part.

Luiz agreed to take this through his tree.

This series conflicts with Lluís's "qapi: Allow modularization of QAPI schema files", but only in docs/writing-qmp-commands.txt, and resolution is trivial.

v3:
- PATCH 02/15 peformed two unwanted renames, 03/15 reverted them; drop all that. Since this effectively squashes 03 into 02, I took the liberty to retain Eric's R-by.
v2:
- Rebased, straightforward conflict in PATCH 01/15 resolved
- Commit message for PATCH 06/15 clarified [Eric]

Markus Armbruster (14):
qmp hmp: Consistently name Error * objects err, and not errp
qga: Consistently name Error ** objects errp, and not err
qmp: Consistently name Error ** objects errp, and not err
error: Consistently name Error ** objects errp, and not err
qga: Use return values instead of error_is_set(errp)
hmp: Guard against misuse of hmp_handle_error()
qapi: Drop redundant, unclean error_is_set() tests/qapi-schema: Drop superfluous error_is_set()
qapi: Clean up fragile use of error_is_set()
qga: Clean up fragile use of error_is_set()
qga: Drop superfluous error_is_set()
qemu-option: Clean up fragile use of error_is_set()
dump: Drop pointless error_is_set(), DumpState member errp
qmp: Don't use error_is_set() to suppress additional errors

 docs/writing-qmp-commands.txt      |  28 ++---
 dump.c                             |   6 +-
 hmp.c                              | 141 ++++++++++++------------
 include/qapi/error.h               |  27 +++--
 include/qapi/qmp/dispatch.h        |   2 +-
 qapi/qmp-dispatch.c                |  24 ++---
 qga/commands-posix.c               | 213 ++++++++++++++++++++-----------------
 qga/commands-win32.c               | 123 ++++++++++-----------
 qga/commands.c                     |   4 +-
 qga/main.c                         |   1 +
 qga/vss-win32.c                    |   4 +-
 qga/vss-win32.h                    |   2 +-
 qmp.c                              |  42 +++-----
 tests/test-qmp-input-strict.c      |  72 ++++++-------
 tests/test-qmp-input-visitor.c     |  89 ++++++++--------
 tests/test-qmp-output-visitor.c    |  74 ++++++-------
 tests/test-string-input-visitor.c  |  50 ++++-----
 tests/test-string-output-visitor.c |  46 ++++----
 util/error.c                       |   8 +-
 util/qemu-option.c                 |   2 +-
 20 files changed, 484 insertions(+), 474 deletions(-)
Signature · 1 line
1.8.1.4