Skip to content

A bit of cleanup around Error

Markus Armbruster qemu-arm qemu-devel qemu-riscv xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/core/loader: Make load_elf_hdr() return bool, simplify callerhw/arm/boot.c hw/core/loader.c hw/riscv/spike.c +1 more+11 -179 replies
2/5hw/nvram/xlnx-bbram: More idiomatic and simpler error reportinghw/nvram/xlnx-bbram.c+4 -145 replies
3/5nbd/client-connection: Replace error_propagate() by assignmentnbd/client-connection.c+1 -23 replies
4/5error: error_free(NULL) is safe, drop unnecessary conditionalshw/acpi/pcihp.c io/channel-websock.c io/task.c +2 more+6 -174 replies
5/5error: Consistently name Error * objects err, and not errpblock/crypto.c hw/acpi/ghes.c hw/ppc/spapr.c +2 more+29 -224 replies

Reviews trailers per patch

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

PatchRichard HendersonVladimir Sementsov-OgievskiyPeter XuLuc MichelDaniel Henrique BarbozaZhao Liu
1/5R-b R-b R-b R-b R-b
2/5R-b R-b R-b R-b
3/5R-b R-b R-b
4/5R-b R-b A-b R-b
5/5R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] A bit of cleanup around Error

Note: the last patch adds a drive-by FIXME. I asked for advice on how to fix it:

Subject: Incorrect error handling in xen_enable_tpm()
To: [email protected]
Cc: Stefano Stabellini <[email protected]>, Anthony PERARD <[email protected]>, Paul
Durrant <[email protected]>, "Edgar E. Iglesias" <[email protected]>, [email protected], Vikram Garhwal <[email protected]>
Date: Fri, 14 Nov 2025 10:16:58 +0100
Message-ID: <[email protected]>

No reply so far.

Markus Armbruster (5):
hw/core/loader: Make load_elf_hdr() return bool, simplify caller hw/nvram/xlnx-bbram: More idiomatic and simpler error reporting nbd/client-connection: Replace error_propagate() by assignment
error: error_free(NULL) is safe, drop unnecessary conditionals
error: Consistently name Error * objects err, and not errp

 include/hw/loader.h         |  4 +++-
 block/crypto.c              |  8 ++++----
 hw/acpi/ghes.c              |  8 ++++----
 hw/acpi/pcihp.c             |  4 +---
 hw/arm/boot.c               |  6 +-----
 hw/core/loader.c            |  8 ++++++--
 hw/nvram/xlnx-bbram.c       | 18 ++++--------------
 hw/ppc/spapr.c              | 16 ++++++++--------
 hw/riscv/spike.c            | 10 +---------
 hw/xen/xen-pvh-common.c     | 13 ++++++++++---
 io/channel-websock.c        |  4 +---
 io/task.c                   |  4 +---
 migration/migration.c       |  6 ++----
 nbd/client-connection.c     |  3 +--
 nbd/common.c                |  6 +++---
 tests/unit/test-smp-parse.c |  5 +----
 16 files changed, 51 insertions(+), 72 deletions(-)
Signature · 1 line
2.49.0