]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/vt-d: Add qi_batch for dmar_domain
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 2 Sep 2024 02:27:23 +0000 (10:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 2 Sep 2024 16:15:02 +0000 (18:15 +0200)
commit777cdd853434849cc98ef94787538b1eb9f492d9
tree0a844316be219a061d68e68607abbde7df192cf6
parent3297d047cd7f502ea7bd949fe070bf01c02aec3e
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>
drivers/iommu/intel/cache.c
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/nested.c
drivers/iommu/intel/svm.c