iommu/vt-d: Wrap the dirty tracking loop to be a helper
authorYi Liu <yi.l.liu@intel.com>
Mon, 19 Feb 2024 11:15:58 +0000 (19:15 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Feb 2024 09:28:47 +0000 (10:28 +0100)
commit0c7f2497b39da44253d7bcf2b41f52b0048859ad
treeb30458e62ee33add9dafa8dd7cd368e989d60dbb
parent56ecaf6c5834ace14941d7f13dceb48bc3327111
iommu/vt-d: Wrap the dirty tracking loop to be a helper

Add device_set_dirty_tracking() to loop all the devices and set the dirty
tracking per the @enable parameter.

Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20240208082307.15759-8-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/iommu.c