Skip to content

vfio: selftests: Fix MMIO test failures in iommufd compat mode

Yi Lai kvm linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfio: selftests: Fix iommufd compat mode __iommu_unmap() crashtools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c+1 -00 replies
2/2vfio: selftests: Align __iommu_unmap() check with iommufd compat modetools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] vfio: selftests: Fix MMIO test failures in iommufd compat mode

This series fixes two issues in the vfio_dma_mapping_mmio_test selftest when running in iommufd compat mode.

The first patch fixes a segmentation fault caused by an uninitialized list head when __iommu_map() fails (as expected for MMIO regions in iommufd).

The second patch fixes a test assertion failure by aligning the check for the __iommu_unmap() return value based on the iommufd mode (native vs. compat).

Yi Lai (2):
vfio: selftests: Fix iommufd compat mode __iommu_unmap() crash
vfio: selftests: Align __iommu_unmap() check with iommufd compat mode

 .../selftests/vfio/vfio_dma_mapping_mmio_test.c        | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0