RE: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA

From: Tian, Kevin
Date: Mon May 08 2023 - 20:14:04 EST


> From: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
> Sent: Tuesday, May 9, 2023 4:22 AM
>
> Leave the name MM_PASID aside, I am trying to capture the discussion with
> a
> patch below. I am struggling to get a clean solution since SVA code is
> common as you said "having a per-mm ASID for IO". Having x86 Kconfig
> select
> MM_PASID would be redundant if it is already selected by IOMMU_SVA.

Currently SVA relies on mm->pasid, w/ or w/o ENQCMD.

From this angle having IOMMU_SVA select MM_PASID looks sufficient to me.

If one day there is a reason to constrain mm->pasid only for ENQCMD, then
we can move to let arch config select MM_PASID.