From: "Jan Beulich" Subject: Re: [V1 PATCH 03/11] PVH dom0: iommu related changes Date: Tue, 12 Nov 2013 16:08:51 +0000 Message-ID: <528260A3020000780010288F@nat28.tlf.novell.com> References: <1383960215-22444-1-git-send-email-mukesh.rathor@oracle.com> <1383960215-22444-4-git-send-email-mukesh.rathor@oracle.com> 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 1VgGWO-0006YK-40 for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 16:08:56 +0000 In-Reply-To: <1383960215-22444-4-git-send-email-mukesh.rathor@oracle.com> 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: Mukesh Rathor Cc: xen-devel , keir.xen@gmail.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 09.11.13 at 02:23, Mukesh Rathor wrote: > --- a/xen/drivers/passthrough/iommu.c > +++ b/xen/drivers/passthrough/iommu.c > @@ -125,15 +125,27 @@ int iommu_domain_init(struct domain *d) > return hd->platform_ops->init(d); > } > > +static inline void check_dom0_pvh_reqs(struct domain *d) No point for this to be an inline function. Even more, irrespective of whether it is, it should also be marked __init. > @@ -141,12 +153,13 @@ void __init iommu_dom0_init(struct domain *d) > page_list_for_each ( page, &d->page_list ) > { > unsigned long mfn = page_to_mfn(page); > + unsigned long gfn = mfn_to_gfn(d, _mfn(mfn)); So the other place in this file uses mfn_to_gmfn(), and I'd really like two to remain in sync, so that things don't get even more confusing (i.e. it's bad enough already that we have two almost identical constructs). Jan