RE: [PATCH RFC v2 0/3] Add set_dev_data and unset_dev_data support

From: Tian, Kevin
Date: Fri Apr 21 2023 - 03:36:07 EST


> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Sent: Thursday, April 20, 2023 3:48 PM
>
> This is a pair of new uAPI/ops for user space to set an iommu specific
> device data for a passthrough device. This is primarily used by SMMUv3
> driver for now, to link the vSID and the pSID of a device that's behind
> the SMMU. The link (lookup table) will be used to verify any ATC_INV
> command from the user space for that device, and then replace the SID
> field (virtual SID) with the corresponding physical SID.
>
> This series is available on Github:
> https://github.com/nicolinc/iommufd/commits/set_dev_data-rfc-v2
>
> Thanks!
> Nicolin
>

there is no changelog compared to v1.

Could you add some words why changing from passing the information
in an iommufd ioctl to bind_iommufd? My gut-feeling leans toward
the latter option...