Hi All,

Please find the below patch and let me know your suggestions on this.

With this patch iommu groups can be linked and iommu driver will
get to know which all iommu groups belongs to a particular iommu device.



Each iommu device might have multiple iommu groups,
with each group populated with many devices. With
this configuration, iommu driver may require a list
of iommu groups belonging to each iommu device.

Add list_head struct entry in iommu_group.

Signed-off-by: Ritesh Harjani <[email protected]>
---
 drivers/iommu/iommu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index e5555fc..70588dc 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -36,6 +36,10 @@ static struct ida iommu_group_ida;
 static struct mutex iommu_group_mutex;

 struct iommu_group {
+       struct list_head list;  /* lower level iommu driver structure
+                                * may require list of iommu groups
+                                * belonging to that iommu device.
+                                */
        struct kobject kobj;
        struct kobject *devices_kobj;
        struct list_head devices;
--
1.8.1.3
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to