RE: [PATCH v6 05/10] iommufd: Add fault and response message definitions

2024-06-07 Thread Tian, Kevin
> From: Baolu Lu > Sent: Thursday, June 6, 2024 2:28 PM > > On 6/5/24 4:28 PM, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Monday, May 27, 2024 12:05 PM > >> > >> + > >> +/** > >> + * struct iommu_hwpt_page_response - IOMMU page fault response > >> + * @size: sizeof(struct iommu_hwpt_page_

RE: [PATCH v6 02/10] iommu: Remove sva handle list

2024-06-07 Thread Tian, Kevin
> From: Baolu Lu > Sent: Thursday, June 6, 2024 2:07 PM > > On 6/5/24 4:15 PM, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Monday, May 27, 2024 12:05 PM > >> > >> - list_for_each_entry(handle, &mm->iommu_mm->sva_handles, > >> handle_item) { > >> - if (handle->dev == dev) { > >> -

RE: [PATCH v6 08/10] iommufd: Associate fault object with iommufd_hw_pgtable

2024-06-07 Thread Tian, Kevin
> From: Lu Baolu > Sent: Monday, May 27, 2024 12:05 PM > > When allocating a user iommufd_hw_pagetable, the user space is allowed to > associate a fault object with the hw_pagetable by specifying the fault > object ID in the page table allocation data and setting the > IOMMU_HWPT_FAULT_ID_VALID f

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

2024-06-07 Thread Tian, Kevin
> 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 attachment handle, so that it > can be echo'ed back in the iopf_group. this message needs an update. now the device poi

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

2024-06-07 Thread Tian, Kevin
> From: Lu Baolu > Sent: Monday, May 27, 2024 12:05 PM > > +static ssize_t iommufd_fault_fops_read(struct file *filep, char __user *buf, > +size_t count, loff_t *ppos) > +{ > + size_t fault_size = sizeof(struct iommu_hwpt_pgfault); > + struct iommufd_fa