RE: [PATCH v1 4/4] iommu: Notify requesters of IOMMU fault failures

From: Temerkhanov, Sergey
Date: Wed Jul 16 2025 - 07:21:50 EST


> Look at how iommufd already associates faults back to its own struct device
> structure side-structure.
>
> I think all you want for this problem is a way to hook the fault callback chain
> on a domain, and that should be local to the domain not global to the device..
>

Moving this to a domain sounds reasonable, however the main goal is to reuse the kernel
SVA IOPF handling code to the maximum extent and only provide "feedback" when
iommu_sva_handle_iopf() returns an error for some reason.

Regards,
Sergey