Re: [PATCH v7 03/10] iommu: Add attach handle to struct iopf_group

2024-06-17 Thread Baolu Lu
On 6/17/24 3:41 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Sunday, June 16, 2024 2:12 PM Add a new IOMMU capability flag, IOMMU_CAP_USER_IOASID_TABLE, which indicates if the IOMMU driver supports user-managed PASID tables. In the iopf deliver path, if no attach handle found for the iopf PASID,

RE: [PATCH v7 00/10] IOMMUFD: Deliver IO page faults to user space

2024-06-17 Thread Tian, Kevin
> From: Lu Baolu > Sent: Sunday, June 16, 2024 2:12 PM > > This series implements the functionality of delivering IO page faults to > user space through the IOMMUFD framework. One feasible use case is the > nested translation. Nested translation is a hardware feature that > supports two-stage tra

RE: [PATCH v7 03/10] iommu: Add attach handle to struct iopf_group

2024-06-17 Thread Tian, Kevin
> From: Lu Baolu > Sent: Sunday, June 16, 2024 2:12 PM > > Add a new IOMMU capability flag, IOMMU_CAP_USER_IOASID_TABLE, which > indicates if the IOMMU driver supports user-managed PASID tables. In the > iopf deliver path, if no attach handle found for the iopf PASID, roll > back to RID domain wh

RE: [PATCH v6 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-06-17 Thread Tian, Kevin
> From: Baolu Lu > Sent: Sunday, June 9, 2024 3:23 PM > > On 6/7/24 5:30 PM, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Monday, May 27, 2024 12:05 PM > >> > >> Add iopf-capable hw page table attach/detach/replace helpers. The > pointer > >> to iommufd_device is stored in the domain attach

RE: [PATCH v6 06/10] iommufd: Add iommufd fault object

2024-06-17 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, June 12, 2024 9:24 PM > > On Fri, Jun 07, 2024 at 09:17:28AM +, Tian, Kevin wrote: > > > From: Lu Baolu > > > Sent: Monday, May 27, 2024 12:05 PM > > > > > > +static ssize_t iommufd_fault_fops_read(struct file *filep, char __user > *buf, > > > +