From: David Woodhouse <dwmw2@infradead.org>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: iommu@lists.linux-foundation.org, chegu_vinod@hp.com,
linux-kernel@vger.kernel.org,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v2] iommu/intel: Exclude devices using RMRRs from IOMMU API domains
Date: Tue, 17 Jun 2014 08:04:52 +0100 [thread overview]
Message-ID: <1402988692.7595.106.camel@i7.infradead.org> (raw)
In-Reply-To: <1402983303.3707.94.camel@ul30vt.home>
[-- Attachment #1: Type: text/plain, Size: 1625 bytes --]
On Mon, 2014-06-16 at 23:35 -0600, Alex Williamson wrote:
>
> Any idea what an off-the-shelf Asus motherboard would be doing with an
> RMRR on the Intel HD graphics?
>
> dmar: RMRR base: 0x000000bb800000 end: 0x000000bf9fffff
> IOMMU: Setting identity map for device 0000:00:02.0 [0xbb800000 - 0xbf9fffff]
Hm, we should have thought of that sooner. That's quite normal — it's
for the 'stolen' memory used for the framebuffer. And maybe also the
GTT, and shadow GTT and other things; I forget precisely what, and it
varies from one setup to another.
I'd expect fairly much all systems to have an RMRR for the integrated
graphics device if they have one, and your patch¹ is going to prevent
assignment of those to guests... as you've presumably noticed.
I'm not sure if the i915 driver is capable of fully reprogramming the
hardware to completely stop using that region, to allow assignment to a
guest with a 'pure' memory map and no stolen region. I suppose it must,
if assignment to guests was working correctly before?
Perhaps the better answer here is not to have the special cases in
'device_is_rmrr_locked()', and instead allow a device driver to call a
'iommu_release_rmrrs()' function once it's reset the hardware to *stop*
doing whatever DMA the BIOS set it up with.
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
¹ Alex's patch prevents assignment to VM guests of *any* device which has
RMRRs (reserved regions requiring an IOMMU 1:1 mapping) in its DMAR
table.
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5745 bytes --]
next prev parent reply other threads:[~2014-06-17 7:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 16:30 [PATCH v2] iommu/intel: Exclude devices using RMRRs from IOMMU API domains Alex Williamson
2014-06-17 5:35 ` Alex Williamson
2014-06-17 7:04 ` David Woodhouse [this message]
2014-06-17 7:15 ` [Intel-gfx] " Daniel Vetter
2014-06-17 7:21 ` David Woodhouse
2014-06-17 8:14 ` Daniel Vetter
2014-06-17 12:22 ` Alex Williamson
2014-06-17 12:41 ` David Woodhouse
2014-06-17 13:16 ` Alex Williamson
2014-06-17 13:44 ` [Intel-gfx] " Daniel Vetter
2014-06-17 14:15 ` Alex Williamson
2014-06-17 16:45 ` Daniel Vetter
2014-06-17 16:59 ` Alex Williamson
2014-06-17 17:53 ` Daniel Vetter
2014-06-18 21:48 ` Alex Williamson
2014-06-19 1:47 ` Alex Williamson
2014-06-19 6:10 ` Daniel Vetter
2014-06-19 14:29 ` Alex Williamson
2014-06-19 14:41 ` Daniel Vetter
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=1402988692.7595.106.camel@i7.infradead.org \
--to=dwmw2@infradead.org \
--cc=alex.williamson@redhat.com \
--cc=chegu_vinod@hp.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.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