Skip to content

Clean up around error_get_pretty(), qerror_report_err()

Markus Armbruster qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 3 repliesIn review
  2. v19 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* Split PATCH 01 into 01 and 02 [Eric, Kevin]
* Rebased, PATCH 02 picked up another hunk
* Remaining patches unchanged, R-by retained

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10error: New convenience function error_report_err()include/qapi/error.h util/error.c+11 -02 replies
2/10error: Use error_report_err() where appropriatearch_init.c block/sheepdog.c blockdev.c +28 more+79 -1271 reply
3/10monitor: Clean up around monitor_handle_fd_param()hw/i386/kvm/pci-assign.c hw/scsi/vhost-scsi.c include/monitor/monitor.h +3 more+16 -240 replies
4/10monitor: Avoid qerror_report_err() outside QMP command handlersmonitor.c+1 -20 replies
5/10net: Avoid qerror_report_err() outside QMP command handlersnet/net.c+3 -60 replies
6/10numa: Avoid qerror_report_err() outside QMP command handlersnuma.c+3 -50 replies
7/10tpm: Avoid qerror_report_err() outside QMP command handlerstpm.c+2 -40 replies
8/10vl: Avoid qerror_report_err() outside QMP command handlersvl.c+2 -40 replies
9/10qemu-img: Avoid qerror_report_err() outside QMP command handlersqemu-img.c+1 -20 replies
10/10qemu-char: Avoid qerror_report_err() outside QMP command handlersqemu-char.c+1 -20 replies

Reviews trailers per patch

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

PatchEric Blake
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-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/10] Clean up around error_get_pretty(), qerror_report_err()

Tree-wide cleanup, but the tree-wide changes are mechanical. If nobody objects, I'll route it through my own tree.

Depends on my "[PATCH] vhost-scsi: Improve error reporting for invalid vhostfd".

PATCH 01 introduces a helper function, PATCH 02 puts it to use. Responsible for the bulk of the diffstat. I could split off one or more of block, arm, x86+pci, scsi, usb, char, net for maintainers to pick up after the main patch got in. Cc'ing a few maintainers who might prefer that, to give them a chance to ask for it.

PATCH 03 gets rid of an unnecessary use of qerror_report_err(). This is the patch that causes the dependency mentioned above.

The remaining patches clean up inappropriate uses of qerror_report_err().

Cc Kevin Wolf <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
Cc Jason Wang <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc Andreas Färber <[email protected]>

v2:
* Split PATCH 01 into 01 and 02 [Eric, Kevin]
* Rebased, PATCH 02 picked up another hunk
* Remaining patches unchanged, R-by retained

Markus Armbruster (10):
error: New convenience function error_report_err()
error: Use error_report_err() where appropriate
monitor: Clean up around monitor_handle_fd_param()
monitor: Avoid qerror_report_err() outside QMP command handlers
net: Avoid qerror_report_err() outside QMP command handlers
numa: Avoid qerror_report_err() outside QMP command handlers
tpm: Avoid qerror_report_err() outside QMP command handlers
vl: Avoid qerror_report_err() outside QMP command handlers
qemu-img: Avoid qerror_report_err() outside QMP command handlers
qemu-char: Avoid qerror_report_err() outside QMP command handlers

 arch_init.c               |  3 +--
 block/sheepdog.c          | 39 +++++++++++++--------------------------
 blockdev.c                | 12 ++++--------
 hw/arm/exynos4210.c       |  4 ++--
 hw/arm/highbank.c         |  4 ++--
 hw/arm/integratorcp.c     |  4 ++--
 hw/arm/realview.c         |  6 +++---
 hw/arm/versatilepb.c      |  4 ++--
 hw/arm/vexpress.c         |  2 +-
 hw/arm/xilinx_zynq.c      |  8 ++++----
 hw/block/virtio-blk.c     |  3 +--
 hw/char/serial.c          |  6 ++----
 hw/i386/kvm/pci-assign.c  | 14 +++++---------
 hw/i386/pc.c              |  5 ++---
 hw/i386/smbios.c          | 14 +++++++-------
 hw/ide/qdev.c             |  3 +--
 hw/pci/pci-hotplug-old.c  |  3 +--
 hw/pci/pci.c              |  3 +--
 hw/scsi/vhost-scsi.c      |  2 +-
 hw/usb/dev-network.c      |  3 +--
 hw/usb/host-libusb.c      |  3 +--
 hw/usb/redirect.c         |  3 +--
 include/monitor/monitor.h |  3 +--
 include/qapi/error.h      |  5 +++++
 monitor.c                 | 18 ++----------------
 net/net.c                 |  9 +++------
 net/socket.c              |  4 +++-
 net/tap.c                 | 11 ++++++++---
 numa.c                    |  8 +++-----
 qemu-char.c               |  6 ++----
 qemu-img.c                |  9 +++------
 qemu-io.c                 |  3 +--
 qemu-nbd.c                | 12 ++++--------
 qom/cpu.c                 |  3 +--
 target-i386/cpu.c         |  3 +--
 target-sparc/cpu.c        |  3 +--
 tpm.c                     |  6 ++----
 util/error.c              | 14 ++++++++++----
 util/qemu-config.c        |  9 +++------
 vl.c                      | 21 ++++++++-------------
 40 files changed, 119 insertions(+), 176 deletions(-)
Signature · 1 line
1.9.3