From: Ian Campbell Subject: Re: [PATCH 3/3] xen: expose that grant table mappings update the IOMMU Date: Tue, 8 Apr 2014 09:58:57 +0100 Message-ID: <1396947537.22845.191.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> 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 1WXRry-0006yy-7r for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 08:59:02 +0000 In-Reply-To: <5343D5E302000078000067A1@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 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. Ian.