From: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
To: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
Cc: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: [PATCH v3 0/3] Support for nesting IOMMUs in VFIO
Date: Wed, 3 Sep 2014 17:04:19 +0100 [thread overview]
Message-ID: <20140903160419.GH32378@arm.com> (raw)
In-Reply-To: <20140903152241.GK28786-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
On Wed, Sep 03, 2014 at 04:22:42PM +0100, Joerg Roedel wrote:
> Hi Will,
Hi Joerg,
> On Tue, Sep 02, 2014 at 10:53:36AM +0100, Will Deacon wrote:
> > This is version three of the patches I originally posted here:
> >
> > RFCv1: http://permalink.gmane.org/gmane.linux.kernel.iommu/5552
> > RFCv2: http://permalink.gmane.org/gmane.linux.kernel.iommu/5700
> >
> > Changes since RFCv2 include:
> >
> > - Dropped the RFC tag
> > - Rebased onto 3.17-rc*
> > - Iterate the support bus_types (currently just PCI) and check that
> > nesting is actually supported
> >
> > The corresponding arm-smmu changes are included to show how the new
> > domain attribute can be used.
>
> How is this implemented in the SMMU, can there be only one stage2
> mapping, so that a device can be passed through to a KVM guest or can
> there be multiple stage2 mappings in parallel (like with PRI/PASID on
> PCI) to support multiple translation contexts on one device?
The restriction is that a stage-1 context (i.e. set of guest page tables)
can be associated with at most 1 stage-2 context. If a device is capable of
emitting multiple Stream IDs and the guest assigns those to different
stage-1 contexts, then I guess we could use different stage-2 contexts for
them, but it's not something I'd considered.
Note that the stage-2 context is used to walk the stage-1 page tables, so
you always needs the guest memory to be mapped there.
Will
next prev parent reply other threads:[~2014-09-03 16:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 9:53 [PATCH v3 0/3] Support for nesting IOMMUs in VFIO Will Deacon
[not found] ` <1409651619-27342-1-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2014-09-02 9:53 ` [PATCH v3 1/3] iommu: introduce domain attribute for nesting IOMMUs Will Deacon
2014-09-02 9:53 ` [PATCH v3 2/3] vfio/iommu_type1: add new VFIO_TYPE1_NESTING_IOMMU IOMMU type Will Deacon
[not found] ` <1409651619-27342-3-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2014-09-11 19:12 ` Alex Williamson
[not found] ` <1410462748.2982.342.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2014-09-12 16:55 ` Will Deacon
[not found] ` <20140912165520.GF12108-5wv7dgnIgG8@public.gmane.org>
2014-09-12 17:25 ` Alex Williamson
2014-09-02 9:53 ` [PATCH v3 3/3] iommu/arm-smmu: add support for DOMAIN_ATTR_NESTING attribute Will Deacon
[not found] ` <1409651619-27342-4-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2014-09-02 11:12 ` Varun Sethi
[not found] ` <6c60062d962340bbaeccb07c82eaae73-AZ66ij2kwaacCcN9WK45f+O6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-09-02 11:16 ` Will Deacon
2014-09-03 15:22 ` [PATCH v3 0/3] Support for nesting IOMMUs in VFIO Joerg Roedel
[not found] ` <20140903152241.GK28786-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2014-09-03 16:04 ` Will Deacon [this message]
2014-09-11 17:10 ` Will Deacon
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=20140903160419.GH32378@arm.com \
--to=will.deacon-5wv7dgnigg8@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox