Messages in this thread | | | Date | Wed, 11 Oct 2023 12:44:35 -0300 | From | Jason Gunthorpe <> | Subject | Re: [v6 PATCH 2/5] iommu: Add mm_get_enqcmd_pasid() helper function |
| |
On Wed, Oct 11, 2023 at 02:51:29PM +0800, Tina Zhang wrote: > mm_get_enqcmd_pasid() is for getting enqcmd pasid value. > > The motivation is to replace mm->pasid with an iommu private data > structure that is introduced in a later patch.
When you do v7 how about:
===
mm_get_enqcmd_pasid() should be used by architecture code and closely related to learn the PASID value that the x86 ENQCMD operation should use for the mm.
For the moment SMMUv3 uses this without any connection to ENQCMD, it will be cleaned up similar to how the prior patch made VT-d use the PASID argument of set_dev_pasid().
The motivation is to replace mm->pasid with an iommu private data structure that is introduced in a later patch.
===
Jason
| |