From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Ritesh Harjani <ritesh.harjani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
"iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: [PATCH] iommu-groups: Add list_head for iommu groups
Date: Tue, 8 Apr 2014 12:18:01 +0200 [thread overview]
Message-ID: <20140408101800.GS13491@8bytes.org> (raw)
In-Reply-To: <CAD15agYF5TCNa-0COxx3Po+7h4aKa=EW2oou_gftacfOev6CJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, Apr 07, 2014 at 09:54:54PM +0530, Ritesh Harjani wrote:
> On Mon, Apr 7, 2014 at 7:44 PM, Alex Williamson
> <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> > On Mon, 2014-04-07 at 15:23 +0530, Ritesh Harjani wrote:
> >> Say multiple groups are linked to one iommu device. Each iommu_group maintains
> >> one iommu_data specific to their group. Now, if iommu driver of a
> >> iommu device wants
> >> to query all the iommu groups and thus all devices which belongs to
> >> this iommu hardware,
> >> then in that it will be nice if iommu_group struct provides a list_entry ?
> >
> > iommu_data is owned by the iommu driver, so if a driver wants to create
> > such a list, why would it not do so there? What's being requested here
> > is an extension to a private data structure with no concrete example of
> > why this is needed. Current users don't seem to have any need for this.
> > Furthermore struct iommu_group is intentionally opaque to everything
> > outside of iommu.c, so without either relocating this structure to a
> > header or adding a list service to the iommu group interfaces, the
> > change is completely useless. Thanks,
I agree with Alex. Besides, when submitting such a change please also
include the code that makes use of it. Only then we can see if the
change is really necessary.
Joerg
next prev parent reply other threads:[~2014-04-08 10:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
[not found] ` <20140408101800.GS13491-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2014-04-08 10:33 ` Ritesh Harjani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140408101800.GS13491@8bytes.org \
--to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
--cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=ritesh.harjani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.