diff mbox series

[v1,1/4] iommu: Add IOMMU_SYS_CACHE flag for system cache control

Message ID 20240826071641.2691374-2-manojvishy@google.com (mailing list archive)
State New
Headers show
Series vfio/iommu: Flag to allow userspace to set DMA buffers system cacheable | expand

Commit Message

Manoj Vishwanathan Aug. 26, 2024, 7:16 a.m. UTC
This flag indicates whether the associated page should be cached in the
system's cache hierarchy.

Signed-off-by: Manoj Vishwanathan <manojvishy@google.com>
---
 include/linux/iommu.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 04cbdae0052e..ca895c83c24f 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -31,6 +31,12 @@ 
  */
 #define IOMMU_PRIV	(1 << 5)
 
+/*
+ * Flag to indicate whether the associated page should be cached in the
+ * system's cache hierarchy.
+ */
+#define IOMMU_SYS_CACHE (1 << 6)
+
 struct iommu_ops;
 struct iommu_group;
 struct bus_type;