Skip to content

Cleanup up to fix missing ERRP_GUARD() for error_prepend()

Zhao Liu qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16error: Add error_vprepend() in comment of ERRP_GUARD() rulesinclude/qapi/error.h+1 -12 replies
2/16backends/iommufd: Fix missing ERRP_GUARD() for error_prepend()backends/iommufd.c+1 -01 reply
3/16block: Fix missing ERRP_GUARD() for error_prepend()block.c+4 -02 replies
4/16block/cbw: Fix missing ERRP_GUARD() for error_prepend()block/copy-before-write.c+1 -02 replies
5/16block/nbd: Fix missing ERRP_GUARD() for error_prepend()block/nbd.c+1 -01 reply
6/16block/nvme: Fix missing ERRP_GUARD() for error_prepend()block/nvme.c+3 -01 reply
7/16block/qcow2-bitmap: Fix missing ERRP_GUARD() for error_prepend()block/qcow2-bitmap.c+1 -01 reply
8/16block/qcow2: Fix missing ERRP_GUARD() for error_prepend()block/qcow2.c+2 -02 replies
9/16block/qed: Fix missing ERRP_GUARD() for error_prepend()block/qed.c+1 -01 reply
10/16block/snapshot: Fix missing ERRP_GUARD() for error_prepend()block/snapshot.c+2 -00 replies
11/16block/vdi: Fix missing ERRP_GUARD() for error_prepend()block/vdi.c+1 -00 replies
12/16block/vmdk: Fix missing ERRP_GUARD() for error_prepend()block/vmdk.c+1 -00 replies
13/16block/virtio-blk: Fix missing ERRP_GUARD() for error_prepend()hw/block/virtio-blk.c+1 -02 replies
14/16hw/char/xen_console: Fix missing ERRP_GUARD() for error_prepend()hw/char/xen_console.c+1 -01 reply
15/16hw/core/loader-fit: Fix missing ERRP_GUARD() for error_prepend()hw/core/loader-fit.c+2 -00 replies
16/16hw/core/qdev-properties-system: Fix missing ERRP_GUARD() for error_prepend()hw/core/qdev-properties-system.c+1 -03 replies

Reviews trailers per patch

12 of 16 patches have a Reviewed-by or Acked-by.

PatchVladimir Sementsov-OgievskiyStefan HajnocziMichael S. TsirkinZhenzhong DuanMarkus ArmbrusterEric BlakeAnthony PERARD
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b
9/16R-b
10/16
11/16
12/16
13/16R-b A-b
14/16A-b
15/16
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 7 reviewers.

Read the v1 thread

Cover letter [PATCH 00/16 Part 1] Cleanup up to fix missing ERRP_GUARD() for error_prepend()

From: Zhao Liu <[email protected]>

Hi list,

This series is the follow-up of my previous @errp related patch set [1].

The @errp's second restriction (in qapi/error) said:

* Without ERRP_GUARD(), use of the @errp parameter is restricted:
...
* - It should not be passed to error_prepend() or
* error_append_hint(), because that doesn't work with &error_fatal.
* ERRP_GUARD() lifts these restrictions.

With this requirement, there are many places where ERRP_GUARD() needs to be added, especially places where there is no way to ensure that the incoming @errp is pointing to @errp_fatal or not.

To make review easier (and to make sure I'm doing the right thing), I just post the first part here.

Welcome your feedback!

[1]: https://lore.kernel.org/qemu-devel/[email protected]/

Thanks and Best Regards,
Zhao
---
Zhao Liu (16):
error: Add error_vprepend() in comment of ERRP_GUARD() rules backends/iommufd: Fix missing ERRP_GUARD() for error_prepend()
block: Fix missing ERRP_GUARD() for error_prepend() block/cbw: Fix missing ERRP_GUARD() for error_prepend() block/nbd: Fix missing ERRP_GUARD() for error_prepend() block/nvme: Fix missing ERRP_GUARD() for error_prepend() block/qcow2-bitmap: Fix missing ERRP_GUARD() for error_prepend() block/qcow2: Fix missing ERRP_GUARD() for error_prepend() block/qed: Fix missing ERRP_GUARD() for error_prepend() block/snapshot: Fix missing ERRP_GUARD() for error_prepend() block/vdi: Fix missing ERRP_GUARD() for error_prepend() block/vmdk: Fix missing ERRP_GUARD() for error_prepend() block/virtio-blk: Fix missing ERRP_GUARD() for error_prepend() hw/char/xen_console: Fix missing ERRP_GUARD() for error_prepend() hw/core/loader-fit: Fix missing ERRP_GUARD() for error_prepend() hw/core/qdev-properties-system: Fix missing ERRP_GUARD() for
error_prepend()

 backends/iommufd.c               | 1 +
 block.c                          | 4 ++++
 block/copy-before-write.c        | 1 +
 block/nbd.c                      | 1 +
 block/nvme.c                     | 3 +++
 block/qcow2-bitmap.c             | 1 +
 block/qcow2.c                    | 2 ++
 block/qed.c                      | 1 +
 block/snapshot.c                 | 2 ++
 block/vdi.c                      | 1 +
 block/vmdk.c                     | 1 +
 hw/block/virtio-blk.c            | 1 +
 hw/char/xen_console.c            | 1 +
 hw/core/loader-fit.c             | 2 ++
 hw/core/qdev-properties-system.c | 1 +
 include/qapi/error.h             | 2 +-
 16 files changed, 24 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1