]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/vt-d: Refactor the pasid setup helpers
authorYi Liu <yi.l.liu@intel.com>
Fri, 8 Nov 2024 02:13:54 +0000 (10:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 8 Nov 2024 13:04:51 +0000 (14:04 +0100)
commit2cb5ff623d95f382b13ed975ac99be3211e9a284
tree9bc9df9ce61512b83936e4ee5765e978f1eb4a31
parent9bd008f1a91530f6b58f524f0979521161513fdd
iommu/vt-d: Refactor the pasid setup helpers

It is clearer to have a new set of pasid replacement helpers other than
extending the existing ones to cover both initial setup and replacement.
Then abstract out the common code for manipulating the pasid entry as
preparation.

No functional change is intended.

Suggested-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20241107122234.7424-4-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/pasid.c