diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2024-09-02 10:27:23 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-09-02 18:15:02 +0200 |
commit | 777cdd853434849cc98ef94787538b1eb9f492d9 (patch) | |
tree | 0a844316be219a061d68e68607abbde7df192cf6 /drivers/iommu/intel/iommu.c | |
parent | 3297d047cd7f502ea7bd949fe070bf01c02aec3e (diff) |
iommu/vt-d: Add qi_batch for dmar_domain
Introduces a qi_batch structure to hold batched cache invalidation
descriptors on a per-dmar_domain basis. A fixed-size descriptor
array is used for simplicity. The qi_batch is allocated when the
first cache tag is added to the domain and freed during
iommu_free_domain().
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20240815065221.50328-4-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/iommu.c')
-rw-r--r-- | drivers/iommu/intel/iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index dfd33adffb14..038a81efaaf7 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -1572,6 +1572,7 @@ static void domain_exit(struct dmar_domain *domain) if (WARN_ON(!list_empty(&domain->devices))) return; + kfree(domain->qi_batch); kfree(domain); } |