Linux IOMMU Development
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
To: Baptiste Reynal
	<b.reynal-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
Cc: Linux IOMMU
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: SMMU 2-stage support
Date: Wed, 18 Feb 2015 18:56:00 +0000	[thread overview]
Message-ID: <20150218185600.GN22017@arm.com> (raw)
In-Reply-To: <CAN9JPjFf1Lb+L8sWq0SWt8f6P6DX2i308OeF+TdnFdstRoU3hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, Feb 18, 2015 at 05:04:21PM +0000, Baptiste Reynal wrote:
> We are currently working on the ARM SMMU 2-stage support in order to
> expose SMMU capabilities to a guest OS.
> By doing some research, we noticed some work has already be done by Will
> Deacon on exposing virtual IOMMU interface to KVM guest. After going
> through slides and code (on
> git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git<http://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git>,
> branch: iommu/vsmmu), we have some questions :
> 
> - What is the status of this work ? Is Alex still working on it ?

I got a reasonable way through implementing something, but ran into a
wall for a few reasons:

  (1) I don't have anything where I can test this (yet)

  (2) Nobody's actually asking for it...

> - Are there any test case about the current vsmmu implementation ?

No.

> - What is exposed to the guest in the current implementation ?

An emulation of a stage-1 only SMMU.

> - How do the guest program the stage-1 translation ?

Just like it would for a physical SMMU.
It's probably easiest if you look at the (incomplete, WIP) code:

  https://git.kernel.org/cgit/linux/kernel/git/will/linux.git/commit/?h=iommu/vsmmu&id=539dbcb964e5c730791a6a31a4f58ceff4b945c2

Anyway, until somebody actually wants this feature I've put it on ice as
it adds a whole bunch of complication to the ARM SMMU driver, as well as
new user ABI extensions that I don't really want to maintain for fun.

The only murmurs I've heard about IOMMU usage from a guest relate to a
paravirtualised interface, which abstracts the details of the host IOMMU
altogether and allows the translation to be collapsed (which can be
better for TLB utilisation).

Will

  parent reply	other threads:[~2015-02-18 18:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 17:04 SMMU 2-stage support Baptiste Reynal
     [not found] ` <CAN9JPjFf1Lb+L8sWq0SWt8f6P6DX2i308OeF+TdnFdstRoU3hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-18 18:56   ` Will Deacon [this message]
     [not found]     ` <20150218185600.GN22017-5wv7dgnIgG8@public.gmane.org>
2015-04-03  9:55       ` Baptiste Reynal
     [not found]         ` <CAN9JPjFvg=e948ZLLtrUTnvDp8UWHCX2NGB4iUEES733T9YytQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-13 10:41           ` Will Deacon
     [not found]             ` <20150413104122.GC2869-5wv7dgnIgG8@public.gmane.org>
2015-04-14 13:32               ` Varun Sethi
     [not found]                 ` <BN3PR0301MB12194C697DBE9D721BC97F5DEAE60-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-04-15 16:17                   ` Will Deacon
     [not found]                     ` <20150415161739.GD18864-5wv7dgnIgG8@public.gmane.org>
2015-04-16 15:46                       ` Stuart Yoder
     [not found]                         ` <CY1PR0301MB0748D6CF4A434A441442D84087E40-YrwGdl+PljkyhdUd3pz1uJwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-04-17 12:41                           ` 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=20150218185600.GN22017@arm.com \
    --to=will.deacon-5wv7dgnigg8@public.gmane.org \
    --cc=b.reynal-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@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