From: Zhao Liu <zhao1.liu@linux.intel.com>
To: "Thomas Huth" <thuth@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Michael Roth" <michael.roth@amd.com>,
"Michael Tokarev" <mjt@tls.msk.ru>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Zhao Liu <zhao1.liu@intel.com>
Subject: [PATCH v2 00/29] Cleanup up to fix missing ERRP_GUARD() for error_prepend()
Date: Mon, 11 Mar 2024 11:37:53 +0800 [thread overview]
Message-ID: <20240311033822.3142585-1-zhao1.liu@linux.intel.com> (raw)
From: Zhao Liu <zhao1.liu@intel.com>
Hi,
This series is the v2 to add missing ERRP_GUARD() for error_prepend(),
which collects the previous v1 part 1 [1] and v1 part 2 (and excludes
the 4 patches that have already been merged).
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 series, all error_prepend() will follow the above usage rules.
In this series, 2 cases of error_prepend() with &error_fatal are
recognized (patch 30 & patch 31).
And there are some remaining TODOs:
* follow-up cleanup for related @err use cases. (Suggested by Thomas)
* continue to cleanup error_append_hint().
The cleanup looks very trivial and thanks for your review!
[1]: https://lore.kernel.org/qemu-devel/20240228163723.1775791-1-zhao1.liu@linux.intel.com/
[2]: https://lore.kernel.org/qemu-devel/20240229143914.1977550-1-zhao1.liu@linux.intel.com/
Thanks and Best Regards,
Zhao
---
Zhao Liu (29):
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/copy-before-write: 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/core/loader-fit: Fix missing ERRP_GUARD() for error_prepend()
hw/core/qdev-properties-system: Fix missing ERRP_GUARD() for
error_prepend()
hw/misc/ivshmem: Fix missing ERRP_GUARD() for error_prepend()
hw/scsi/vhost-scsi: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/ap: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/container: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/helpers: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/iommufd: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/pci-quirks: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/pci: Fix missing ERRP_GUARD() for error_prepend()
hw/vfio/platform: Fix missing ERRP_GUARD() for error_prepend()
hw/virtio/vhost-vsock: Fix missing ERRP_GUARD() for error_prepend()
hw/virtio/vhost: Fix missing ERRP_GUARD() for error_prepend()
migration/option: Fix missing ERRP_GUARD() for error_prepend()
net/vhost-vdpa: Fix missing ERRP_GUARD() for error_prepend()
target/s390x/cpu_models: 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/core/loader-fit.c | 2 ++
hw/core/qdev-properties-system.c | 1 +
hw/misc/ivshmem.c | 1 +
hw/scsi/vhost-scsi.c | 1 +
hw/vfio/ap.c | 1 +
hw/vfio/container.c | 1 +
hw/vfio/helpers.c | 3 +++
hw/vfio/iommufd.c | 1 +
hw/vfio/pci-quirks.c | 2 ++
hw/vfio/pci.c | 2 ++
hw/vfio/platform.c | 1 +
hw/virtio/vhost-vsock.c | 1 +
hw/virtio/vhost.c | 2 ++
include/qapi/error.h | 2 +-
migration/options.c | 2 ++
net/vhost-vdpa.c | 1 +
target/s390x/cpu_models.c | 2 ++
29 files changed, 44 insertions(+), 1 deletion(-)
--
2.34.1
next reply other threads:[~2024-03-11 3:26 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 3:37 Zhao Liu [this message]
2024-03-11 3:37 ` [PATCH v2 01/29] error: Add error_vprepend() in comment of ERRP_GUARD() rules Zhao Liu
2024-03-11 3:37 ` [PATCH v2 02/29] backends/iommufd: Fix missing ERRP_GUARD() for error_prepend() Zhao Liu
2024-03-11 9:32 ` Eric Auger
2024-03-11 3:37 ` [PATCH v2 03/29] block: " Zhao Liu
2024-03-11 3:37 ` [PATCH v2 04/29] block/copy-before-write: " Zhao Liu
2024-03-11 3:37 ` [PATCH v2 05/29] block/nbd: " Zhao Liu
2024-03-11 3:37 ` [PATCH v2 06/29] block/nvme: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 07/29] block/qcow2-bitmap: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 08/29] block/qcow2: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 09/29] block/qed: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 10/29] block/snapshot: " Zhao Liu
2024-03-12 8:11 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 11/29] block/vdi: " Zhao Liu
2024-03-12 8:14 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 12/29] block/vmdk: " Zhao Liu
2024-03-12 8:23 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 13/29] block/virtio-blk: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 14/29] hw/core/loader-fit: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 15/29] hw/core/qdev-properties-system: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 16/29] hw/misc/ivshmem: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 17/29] hw/scsi/vhost-scsi: " Zhao Liu
2024-03-12 8:48 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 18/29] hw/vfio/ap: " Zhao Liu
2024-03-11 7:42 ` Cédric Le Goater
2024-03-11 3:38 ` [PATCH v2 19/29] hw/vfio/container: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 20/29] hw/vfio/helpers: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 21/29] hw/vfio/iommufd: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 22/29] hw/vfio/pci-quirks: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 23/29] hw/vfio/pci: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 24/29] hw/vfio/platform: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 25/29] hw/virtio/vhost-vsock: " Zhao Liu
2024-03-12 8:53 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 26/29] hw/virtio/vhost: " Zhao Liu
2024-03-12 9:09 ` Thomas Huth
2024-03-11 3:38 ` [PATCH v2 27/29] migration/option: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 28/29] net/vhost-vdpa: " Zhao Liu
2024-03-11 3:38 ` [PATCH v2 29/29] target/s390x/cpu_models: " Zhao Liu
2024-03-11 7:41 ` Cédric Le Goater
2024-03-11 7:42 ` Cédric Le Goater
2024-03-12 8:17 ` [PATCH v2 00/29] Cleanup up to fix " Philippe Mathieu-Daudé
2024-03-12 8:43 ` Zhao Liu
2024-03-12 8:50 ` Thomas Huth
2024-03-12 10:26 ` Zhao Liu
2024-03-12 10:42 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240311033822.3142585-1-zhao1.liu@linux.intel.com \
--to=zhao1.liu@linux.intel.com \
--cc=armbru@redhat.com \
--cc=michael.roth@amd.com \
--cc=mjt@tls.msk.ru \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=thuth@redhat.com \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).