]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Add present bit check in pasid entry setup helpers
authorLiu Yi L <yi.l.liu@intel.com>
Wed, 18 Aug 2021 13:48:52 +0000 (21:48 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 19 Aug 2021 08:41:08 +0000 (10:41 +0200)
commit3c02d49597ac0424bc48dead8f4f989e512de8ae
treeef54fe6af710ec6ff82fc2f5da02c12e59b5c350
parenta259f8d6e509d43f2009ee406e8a81713a2acd15
iommu/vt-d: Add present bit check in pasid entry setup helpers

The helper functions should not modify the pasid entries which are still
in use. Add a check against present bit.

Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20210817042425.1784279-1-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210818134852.1847070-10-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/pasid.c