All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu-groups: Add list_head for iommu groups
@ 2014-04-04  5:42 Ritesh Harjani
       [not found] ` <CAD15agaN=ymK8JTPELNygF055r3zPyqmJ7bMVabL7pM8EusHjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Ritesh Harjani @ 2014-04-04  5:42 UTC (permalink / raw)
  To: Joerg Roedel, David Woodhouse, Alex Williamson
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org

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 <ritesh.harjani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-08 10:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04  5:42 [PATCH] iommu-groups: Add list_head for iommu groups Ritesh Harjani
     [not found] ` <CAD15agaN=ymK8JTPELNygF055r3zPyqmJ7bMVabL7pM8EusHjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-04 14:03   ` Alex Williamson
     [not found]     ` <1396620219.3215.46.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2014-04-07  9:53       ` Ritesh Harjani
     [not found]         ` <CAD15agZbUwvda+XG3hELJT5PQ_0j2Bya8Y9wOZcP5qg8binUzg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-07 14:14           ` Alex Williamson
     [not found]             ` <1396880095.3215.89.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2014-04-07 16:24               ` Ritesh Harjani
     [not found]                 ` <CAD15agYF5TCNa-0COxx3Po+7h4aKa=EW2oou_gftacfOev6CJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-08 10:18                   ` Joerg Roedel
     [not found]                     ` <20140408101800.GS13491-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2014-04-08 10:33                       ` Ritesh Harjani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.