Skip to content

Conversation

@minwooim
Copy link
Collaborator

If the current system has iommufd support, -Diommufd=disabled has no-op since __iommufd_is_available() returns true and no envvar is set. It leads to segfault when pci device tries to get the default iommu context. This patch fixed this issue by defining -DVFN_IOMMU_FORCE_VFIO when -Diommufd=disabled is given by keeping the previous envvar VFN_IOMMU_FORCE_VFIO is working as is.

If the current system has iommufd support, -Diommufd=disabled has no-op
since `__iommufd_is_available()` returns true and no envvar is set.  It
leads to segfault when pci device tries to get the default iommu
context.  This patch fixed this issue by defining -DVFN_IOMMU_FORCE_VFIO
when -Diommufd=disabled is given by keeping the previous envvar
VFN_IOMMU_FORCE_VFIO is working as is.

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
@minwooim minwooim requested a review from birkelund January 18, 2026 12:16
@minwooim minwooim merged commit 04e58b1 into SamsungDS:main Jan 18, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant