From: Ian Campbell Subject: Re: [PATCH 3/3] xen: expose that grant table mappings update the IOMMU Date: Tue, 8 Apr 2014 10:57:51 +0100 Message-ID: <1396951071.22845.205.camel@kazak.uk.xensource.com> References: <1396886524-16921-1-git-send-email-roger.pau@citrix.com> <1396886524-16921-4-git-send-email-roger.pau@citrix.com> <1396946083.22845.171.camel@kazak.uk.xensource.com> <5343D5E302000078000067A1@nat28.tlf.novell.com> <1396947537.22845.191.camel@kazak.uk.xensource.com> <5343E3490200007800006892@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXSnH-0004di-4B for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 09:58:15 +0000 In-Reply-To: <5343E3490200007800006892@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel@lists.xenproject.org, Keir Fraser , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, 2014-04-08 at 10:53 +0100, Jan Beulich wrote: > >>> On 08.04.14 at 10:58, wrote: > > On Tue, 2014-04-08 at 09:56 +0100, Jan Beulich wrote: > >> >>> On 08.04.14 at 10:34, wrote: > >> > On Mon, 2014-04-07 at 18:02 +0200, Roger Pau Monne wrote: > >> >> Add a new XENFEAT_hvm_gntmap_supports_iommu that is used to check > >> >> whether the hypervisor properly updates the IOMMU on auto-translated > >> >> guests when doing a grant table map/unmap operation. > >> > > >> > Is it the case on x86 that all devices are behind the IOMMU? > > > > I suppose I should have said "all DMA capable devices" or some such. > > > >> All PCI ones are. If someone passes through a device through > >> raw MMIO/PIO/PIRQ ranges, then the IOMMU may or may not > >> be involved. But I don't think we formally consider this model > >> valid/supported/secure for HVM guests (and for PV guests it's > >> insecure anyway, due to not requiring an IOMMU in the first > >> place). > > > > I was thinking of PVH dom0 here, which is the closest analogue to the > > ARM model. > > > > Sounds like it might suffer from the same shortcomings as ARM has to > > deal with. > > Except that on x86 there are hardly many DMA-capable non-PCI > devices, Sure. > and even less one may want to consider passing through > to a guest. Again, PVH dom0 is my concern here. By default you would expect dom0 to get given almost everything in the platform, including things which you might not normally pass through to a guest. Ian.