RE: [RFC 3/8] iommufd: Support attach/replace hwpt per pasid

2023-09-27 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, September 27, 2023 11:44 PM > > On Wed, Sep 27, 2023 at 10:49:29AM +0800, Baolu Lu wrote: > > On 9/26/23 5:26 PM, Yi Liu wrote: > > > From: Kevin Tian > > > > > > This introduces three APIs for device drivers to manage pasid attach/ > > > replace/detach.

Re: [RFC 3/8] iommufd: Support attach/replace hwpt per pasid

2023-09-27 Thread Jason Gunthorpe
On Wed, Sep 27, 2023 at 10:49:29AM +0800, Baolu Lu wrote: > On 9/26/23 5:26 PM, Yi Liu wrote: > > From: Kevin Tian > > > > This introduces three APIs for device drivers to manage pasid attach/ > > replace/detach. > > > > int iommufd_device_pasid_attach(struct iommufd_device *idev, > >

RE: [RFC 3/8] iommufd: Support attach/replace hwpt per pasid

2023-09-26 Thread Tian, Kevin
> From: Baolu Lu > Sent: Wednesday, September 27, 2023 10:49 AM > > On 9/26/23 5:26 PM, Yi Liu wrote: > > From: Kevin Tian > > > > This introduces three APIs for device drivers to manage pasid attach/ > > replace/detach. > > > > int iommufd_device_pasid_attach(struct iommufd_device *idev, >

Re: [RFC 3/8] iommufd: Support attach/replace hwpt per pasid

2023-09-26 Thread Baolu Lu
On 9/26/23 5:26 PM, Yi Liu wrote: From: Kevin Tian This introduces three APIs for device drivers to manage pasid attach/ replace/detach. int iommufd_device_pasid_attach(struct iommufd_device *idev, u32 pasid, u32 *pt_id); int iommufd_device_pasid_re

[RFC 3/8] iommufd: Support attach/replace hwpt per pasid

2023-09-26 Thread Yi Liu
From: Kevin Tian This introduces three APIs for device drivers to manage pasid attach/ replace/detach. int iommufd_device_pasid_attach(struct iommufd_device *idev, u32 pasid, u32 *pt_id); int iommufd_device_pasid_replace(struct iommufd_device *idev,