From: "Jan Beulich" Subject: Re: [PATCH v2] xen/iommu: fix usage of shared EPT/IOMMU page tables on PVH guests Date: Tue, 10 Mar 2015 13:06:09 +0000 Message-ID: <54FEFA5102000078000680F7@mail.emea.novell.com> References: <1425036812-23536-1-git-send-email-roger.pau@citrix.com> <54FEE8BA.8060505@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YVJrW-0006Ca-NT for xen-devel@lists.xenproject.org; Tue, 10 Mar 2015 13:06:18 +0000 In-Reply-To: <54FEE8BA.8060505@linaro.org> Content-Disposition: inline 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: Kevin Tian , Aravind Gopalakrishnan , Suravee Suthikulpanit , Yang Zhang , xen-devel@lists.xenproject.org, Roger Pau Monne List-Id: xen-devel@lists.xenproject.org >>> On 10.03.15 at 13:51, wrote: > Hi, > > On 27/02/15 11:33, Roger Pau Monne wrote: >> diff --git a/xen/drivers/passthrough/iommu.c > b/xen/drivers/passthrough/iommu.c >> index cc12735..7fcbbb1 100644 >> --- a/xen/drivers/passthrough/iommu.c >> +++ b/xen/drivers/passthrough/iommu.c >> @@ -332,7 +332,8 @@ void iommu_share_p2m_table(struct domain* d) >> { >> const struct iommu_ops *ops = iommu_get_ops(); >> >> - if ( iommu_enabled && is_hvm_domain(d) ) >> + ASSERT( hap_enabled(d) ); > > This line is breaking compilation on ARM. > > Shouldn't it be replaced by iommu_use_hap_pt? No, that's a different thing. But shouldn't ARM have a stub hap_enabled() evaluating to constant true? Jan