Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-26 Thread Baolu Lu
On 5/27/24 9:33 AM, Tian, Kevin wrote: From: Jason Gunthorpe Sent: Friday, May 24, 2024 10:25 PM On Mon, May 20, 2024 at 03:39:54AM +, Tian, Kevin wrote: From: Baolu Lu Sent: Monday, May 20, 2024 10:19 AM On 5/15/24 4:50 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Tuesday, April 30, 20

RE: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-26 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, May 24, 2024 10:25 PM > > On Mon, May 20, 2024 at 03:39:54AM +, Tian, Kevin wrote: > > > From: Baolu Lu > > > Sent: Monday, May 20, 2024 10:19 AM > > > > > > On 5/15/24 4:50 PM, Tian, Kevin wrote: > > > >> From: Lu Baolu > > > >> Sent: Tuesday, April

Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-24 Thread Jason Gunthorpe
On Mon, May 20, 2024 at 03:39:54AM +, Tian, Kevin wrote: > > From: Baolu Lu > > Sent: Monday, May 20, 2024 10:19 AM > > > > On 5/15/24 4:50 PM, Tian, Kevin wrote: > > >> From: Lu Baolu > > >> Sent: Tuesday, April 30, 2024 10:57 PM > > >> > > >> @@ -308,6 +314,19 @@ int iommufd_hwpt_alloc(str

Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-19 Thread Baolu Lu
On 5/20/24 11:39 AM, Tian, Kevin wrote: From: Baolu Lu Sent: Monday, May 20, 2024 10:19 AM On 5/15/24 4:50 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Tuesday, April 30, 2024 10:57 PM @@ -308,6 +314,19 @@ int iommufd_hwpt_alloc(struct iommufd_ucmd *ucmd) goto out_put_pt;

RE: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-19 Thread Tian, Kevin
> From: Baolu Lu > Sent: Monday, May 20, 2024 10:19 AM > > On 5/15/24 4:50 PM, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Tuesday, April 30, 2024 10:57 PM > >> > >> @@ -308,6 +314,19 @@ int iommufd_hwpt_alloc(struct iommufd_ucmd > >> *ucmd) > >>goto out_put_pt; > >>} > >>

Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-19 Thread Baolu Lu
On 5/15/24 4:50 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Tuesday, April 30, 2024 10:57 PM @@ -227,7 +233,7 @@ iommufd_hwpt_nested_alloc(struct iommufd_ctx *ictx, refcount_inc(&parent->common.obj.users); hwpt_nested->parent = parent; - hwpt->domain = ops->domain_alloc_u

RE: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-15 Thread Tian, Kevin
> From: Lu Baolu > Sent: Tuesday, April 30, 2024 10:57 PM > > @@ -227,7 +233,7 @@ iommufd_hwpt_nested_alloc(struct iommufd_ctx > *ictx, > refcount_inc(&parent->common.obj.users); > hwpt_nested->parent = parent; > > - hwpt->domain = ops->domain_alloc_user(idev->dev, flags, > +

Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-09 Thread Baolu Lu
On 5/8/24 8:25 AM, Jason Gunthorpe wrote: On Tue, Apr 30, 2024 at 10:57:08PM +0800, Lu Baolu wrote: /** @@ -412,6 +415,9 @@ enum iommu_hwpt_data_type { * @data_type: One of enum iommu_hwpt_data_type * @data_len: Length of the type specific data * @data_uptr: User pointer to the type s

Re: [PATCH v5 7/9] iommufd: Associate fault object with iommufd_hw_pgtable

2024-05-07 Thread Jason Gunthorpe
On Tue, Apr 30, 2024 at 10:57:08PM +0800, Lu Baolu wrote: > /** > @@ -412,6 +415,9 @@ enum iommu_hwpt_data_type { > * @data_type: One of enum iommu_hwpt_data_type > * @data_len: Length of the type specific data > * @data_uptr: User pointer to the type specific data > + * @fault_id: The ID of