Re: [PATCH v5 2/6] iommu: Add mm_get_enqcmd_pasid() helper function

From: Jason Gunthorpe
Date: Thu Oct 05 2023 - 14:40:55 EST


On Mon, Sep 25, 2023 at 10:38:09AM +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.
>
> Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Signed-off-by: Tina Zhang <tina.zhang@xxxxxxxxx>
> ---
>
> Change in v2:
> - Change mm_get_pasid() to mm_get_enqcmd_pasid()
>
> arch/x86/kernel/traps.c | 2 +-
> include/linux/iommu.h | 8 ++++++++
> 2 files changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason