]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/vt-d: Block PASID attachment to nested domain with dirty tracking
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 2 Apr 2026 06:57:24 +0000 (14:57 +0800)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 2 Apr 2026 07:26:04 +0000 (09:26 +0200)
commitcc5bd898ff70710ffc41cd8e5c2741cb64750047
treea974b93acbfc218c7c49766eb459423edd092897
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
iommu/vt-d: Block PASID attachment to nested domain with dirty tracking

Kernel lacks dirty tracking support on nested domain attached to PASID,
fails the attachment early if nesting parent domain is dirty tracking
configured, otherwise dirty pages would be lost.

Cc: stable@vger.kernel.org
Fixes: 67f6f56b5912 ("iommu/vt-d: Add set_dev_pasid callback for nested domain")
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20260330101108.12594-2-zhenzhong.duan@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Fixes: 67f6f56b5912 ("iommu/vt-d: Add set_dev_pasid callback for nested domain")
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/intel/nested.c