From: Ian Campbell Subject: Re: [RFC for-4.5 01/12] xen/common: grant-table: only call IOMMU if paging mode translate is disabled Date: Wed, 19 Feb 2014 12:25:49 +0000 Message-ID: <1392812749.29739.35.camel@kazak.uk.xensource.com> References: <1391794991-5919-1-git-send-email-julien.grall@linaro.org> <1391794991-5919-2-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WG6Ds-0007uH-HI for xen-devel@lists.xenproject.org; Wed, 19 Feb 2014 12:25:56 +0000 In-Reply-To: <1391794991-5919-2-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, Keir Fraser , tim@xen.org, stefano.stabellini@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-02-07 at 17:43 +0000, Julien Grall wrote: > From Xen point of view, ARM guests are PV guest with paging auto translate > enabled. > > When IOMMU support will be added for ARM, mapping grant ref will always crash > Xen due to the BUG_ON in __gnttab_map_grant_ref. > > On x86: > - PV guests always have paging mode translate disabled > - PVH and HVM guests have always paging mode translate enabled > > It means that we can safely replace the check that the domain is a PV guests > by checking if the guest has paging mode translate enabled. > > Signed-off-by: Julien Grall > Cc: Keir Fraser Acked-by: Ian Campbell