]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/vt-d: Factor out invalidation descriptor composition
authorTina Zhang <tina.zhang@intel.com>
Mon, 2 Sep 2024 02:27:21 +0000 (10:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 2 Sep 2024 16:15:00 +0000 (18:15 +0200)
commitf701c9f36bcb7940f9c53413b508de8c9cb0321c
treedf77e58cdf9fc218c117d44e657c4a8858e9e178
parent1f5e307ca16c0c19186cbd56ac460a687e6daba0
iommu/vt-d: Factor out invalidation descriptor composition

Separate the logic for constructing IOTLB and device TLB invalidation
descriptors from the qi_flush interfaces. New helpers, qi_desc(), are
introduced to encapsulate this common functionality.

Moving descriptor composition code to new helpers enables its reuse in
the upcoming qi_batch interfaces.

No functional changes are intended.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20240815065221.50328-2-tina.zhang@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c
drivers/iommu/intel/iommu.h