]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommupt/x86: Set the dirty bit only for writable PTEs
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 23 Oct 2025 18:22:34 +0000 (15:22 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 5 Nov 2025 08:50:19 +0000 (09:50 +0100)
commit1978fac28168bc3e6a66afb9c41ec0f1e8dafa0f
treec9163b57f462ef833e49e9f8f5b4ba263088acde
parent5448c1558f60d4051c90938f2878c6fb20e2982a
iommupt/x86: Set the dirty bit only for writable PTEs

AMD and VTD are historically different here, adopt the VTD version of
setting the D bit only on writable PTEs as it makes more sense.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/generic_pt/fmt/x86_64.h