iommu/vt-d: Set SSADE when attaching to a parent with dirty tracking
authorYi Liu <yi.l.liu@intel.com>
Mon, 19 Feb 2024 11:16:00 +0000 (19:16 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Feb 2024 09:28:48 +0000 (10:28 +0100)
commit1f0198fce68340e0da2d438f4ea9fc20d2c958da
treecff72c308f5a39abe2390b75c1297d16881c95a1
parentf1e1610950eac0af5e40f6ee02315952f78192f7
iommu/vt-d: Set SSADE when attaching to a parent with dirty tracking

Should set the SSADE (Second Stage Access/Dirty bit Enable) bit of the
pasid entry when attaching a device to a nested domain if its parent
has already enabled dirty tracking.

Fixes: 111bf85c68f6 ("iommu/vt-d: Add helper to setup pasid nested translation")
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20240208091414.28133-1-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