Re: [PATCH v2 5/7] iommu: Turn fault_data to iommufd private pointer

2025-02-20 Thread Jason Gunthorpe
On Wed, Feb 19, 2025 at 05:31:40PM -0800, Nicolin Chen wrote: > A "fault_data" was added exclusively for the iommufd_fault_iopf_handler() > used by IOPF/PRI use cases, along with the attach_handle. Now, the iommufd > version of the sw_msi function will reuse the attach_handle and fault_data > for a

[PATCH v2 5/7] iommu: Turn fault_data to iommufd private pointer

2025-02-19 Thread Nicolin Chen
A "fault_data" was added exclusively for the iommufd_fault_iopf_handler() used by IOPF/PRI use cases, along with the attach_handle. Now, the iommufd version of the sw_msi function will reuse the attach_handle and fault_data for a non-fault case. Rename "fault_data" to "iommufd_hwpt" so as not to c