All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Woodhouse, David" <david.woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	"shli-b10kYP2dOMg@public.gmane.org"
	<shli-b10kYP2dOMg@public.gmane.org>
Cc: "Kernel-team-b10kYP2dOMg@public.gmane.org"
	<Kernel-team-b10kYP2dOMg@public.gmane.org>,
	"jroedel-l3A5Bk7waGM@public.gmane.org"
	<jroedel-l3A5Bk7waGM@public.gmane.org>
Subject: Re: [PATCH] intel-iommu: respect iommu=pt
Date: Tue, 24 Nov 2015 21:59:09 +0000	[thread overview]
Message-ID: <1448402349.44976.112.camel@intel.com> (raw)
In-Reply-To: <58e2344c50053de58ceed658272ecc0f349c2f2f.1448401068.git.shli-b10kYP2dOMg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1291 bytes --]

On Tue, 2015-11-24 at 13:53 -0800, Shaohua Li wrote:
> Currently if a device has rmrr or the device is a pci device,
> passthrough is disabled even with iommu=pt. The worry is moving such
> devices between domains don't work. But some users don't do the domain
> reassignment at all, disabling passthough punish everybody. And iommu=pt
> is a boot option, user knows the risk. So intead of failing the
> passthough, just print a warning and continue the passthough.

We tend to suggest that iommu=pt gives you performance for the *decent*
devices, while dubious devices still get translated. So your crappy 32-
bit devices still get translated. And anything unfortunate enough to
have an RMRR can *still* get translated.

I'm reluctant to change that. If it hurts you, kick your system vendor
until they stop doing stupid things with RMRRs.

I think we also need to revisit the whole 'iommu=pt' thing anyway and
define the semantics we expect across archiectures — given that SPARC
and POWER are doing passthrough for 'decent' devices by *default*. So
let's not tweak it right now.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org                              Intel Corporation


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3437 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2015-11-24 21:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 21:53 [PATCH] intel-iommu: respect iommu=pt Shaohua Li
     [not found] ` <58e2344c50053de58ceed658272ecc0f349c2f2f.1448401068.git.shli-b10kYP2dOMg@public.gmane.org>
2015-11-24 21:59   ` Woodhouse, David [this message]
     [not found]     ` <1448402349.44976.112.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-11-24 22:15       ` Shaohua Li
     [not found]         ` <20151124221515.GB2106568-tb7CFzD8y5b7E6g3fPdp/g2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2015-11-24 22:29           ` David Woodhouse

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=1448402349.44976.112.camel@intel.com \
    --to=david.woodhouse-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=Kernel-team-b10kYP2dOMg@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jroedel-l3A5Bk7waGM@public.gmane.org \
    --cc=shli-b10kYP2dOMg@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.