On 11/4/24 21:18, Yi Liu wrote:
As iommu driver is going to support pasid replacement, the new pasid replace helpers need to config the pasid entry as well. Hence, there are quite a few code to be shared with existing pasid setup helpers. This moves the pasid config codes into helpers which can be used by existing pasid setup helpers and the future new pasid replace helpers. No functional change is intended. Suggested-by: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx> Signed-off-by: Yi Liu<yi.l.liu@xxxxxxxxx> --- drivers/iommu/intel/pasid.c | 169 ++++++++++++++++++++++-------------- 1 file changed, 105 insertions(+), 64 deletions(-)
Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>