Skip to content

block/nvme: Rework error reporting

Philippe Mathieu-Daudé qemu-devel 3 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 2 repliesApplied
  2. v211 patches 10 repliesSuperseded
  3. v19 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- qemu_vfio_find_[fixed/temp]_iova retun bool (Klaus)
- Add Klaus's R-b

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/11block/nvme: Use safer trace format stringblock/trace-events+1 -10 replies
2/11util/vfio-helpers: Let qemu_vfio_verify_mappings() use error_report()util/vfio-helpers.c+2 -20 replies
3/11util/vfio-helpers: Replace qemu_mutex_lock() calls with QEMU_LOCK_GUARDutil/vfio-helpers.c+3 -60 replies
4/11util/vfio-helpers: Remove unreachable code in qemu_vfio_dma_map()util/vfio-helpers.c+0 -40 replies
5/11block/nvme: Have nvme_create_queue_pair() report errors consistentlyblock/nvme.c+3 -00 replies
6/11util/vfio-helpers: Pass Error handle to qemu_vfio_dma_map()block/nvme.c include/qemu/vfio-helpers.h util/vfio-helpers.c+18 -160 replies
7/11util/vfio-helpers: Extract qemu_vfio_water_mark_reached()util/vfio-helpers.c+16 -10 replies
8/11util/vfio-helpers: Use error_setg in qemu_vfio_find_[fixed/temp]_iovautil/vfio-helpers.c+14 -101 reply
9/11util/vfio-helpers: Simplify qemu_vfio_dma_map() returning directlyutil/vfio-helpers.c+10 -130 replies
10/11util/vfio-helpers: Let qemu_vfio_do_mapping() propagate Errorutil/vfio-helpers.c+4 -40 replies
11/11block/nvme: Only report VFIO error on failed retryblock/nvme.c+7 -10 replies

Reviews trailers per patch

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

PatchKlaus JensenFam ZhengStefan Hajnoczi
1/11R-b
2/11R-b R-b R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b R-b R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b R-b R-b
11/11R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/11] block/nvme: Rework error reporting

(Series fully reviewed)

Hi,

This series contains various patches sent last year with review comments addressed, few more cleanups, and a new patch which remove the spurious "VFIO_MAP_DMA failed: No space left on device" now poping up since commit 15a730e7a. (it is the expected behavior, which is why we retry the same call after flushing the DMA mappings).

Since v2:
- qemu_vfio_find_[fixed/temp]_iova retun bool (Klaus)
- Add Klaus's R-b

Since v1:
- Addressed Klaus review comments (cleaner Error* handling)
- Add Klaus's R-b

Regards,

Phil.

Philippe Mathieu-Daudé (11):
block/nvme: Use safer trace format string util/vfio-helpers: Let qemu_vfio_verify_mappings() use error_report() util/vfio-helpers: Replace qemu_mutex_lock() calls with
QEMU_LOCK_GUARD
util/vfio-helpers: Remove unreachable code in qemu_vfio_dma_map() block/nvme: Have nvme_create_queue_pair() report errors consistently util/vfio-helpers: Pass Error handle to qemu_vfio_dma_map() util/vfio-helpers: Extract qemu_vfio_water_mark_reached() util/vfio-helpers: Use error_setg in qemu_vfio_find_[fixed/temp]_iova util/vfio-helpers: Simplify qemu_vfio_dma_map() returning directly util/vfio-helpers: Let qemu_vfio_do_mapping() propagate Error block/nvme: Only report VFIO error on failed retry

 include/qemu/vfio-helpers.h |  2 +-
 block/nvme.c                | 29 +++++++----
 util/vfio-helpers.c         | 99 ++++++++++++++++++++-----------------
 block/trace-events          |  2 +-
 4 files changed, 76 insertions(+), 56 deletions(-)
Signature · 1 line
2.31.1