Re: [PATCH v3 6/8] iommufd: IOPF-capable hw page table attach/detach/replace

2024-02-20 Thread Baolu Lu
On 2024/2/20 21:57, Joel Granados wrote: diff --git a/drivers/iommu/iommufd/fault.c b/drivers/iommu/iommufd/fault.c index e752d1c49dde..a4a49f3cd4c2 100644 --- a/drivers/iommu/iommufd/fault.c +++ b/drivers/iommu/iommufd/fault.c @@ -267,3 +267,125 @@ int iommufd_fault_iopf_handler(struct

Re: [PATCH v3 6/8] iommufd: IOPF-capable hw page table attach/detach/replace

2024-02-20 Thread Joel Granados
On Mon, Jan 22, 2024 at 03:39:01PM +0800, Lu Baolu wrote: > The iopf-capable hw page table attach/detach/replace should use the iommu > iopf-specific interfaces. The pointer to iommufd_device is stored in the > private field of the attachment cookie, so that it can be easily retrieved > in the

[PATCH v3 6/8] iommufd: IOPF-capable hw page table attach/detach/replace

2024-01-21 Thread Lu Baolu
The iopf-capable hw page table attach/detach/replace should use the iommu iopf-specific interfaces. The pointer to iommufd_device is stored in the private field of the attachment cookie, so that it can be easily retrieved in the fault handling paths. The references to iommufd_device and