From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH V15 2/9] xen/arm: Allow hypervisor access to mem_access protected pages Date: Tue, 21 Apr 2015 15:22:22 +0100 Message-ID: <1429626142.4743.113.camel@citrix.com> References: <1429542384-23905-1-git-send-email-tklengyel@sec.in.tum.de> <1429542384-23905-3-git-send-email-tklengyel@sec.in.tum.de> <1429622052.4743.77.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tamas K Lengyel Cc: "wei.liu2@citrix.com" , Stefano Stabellini , Ian Jackson , Julien Grall , Tim Deegan , Xen-devel , Stefano Stabellini , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Tue, 2015-04-21 at 16:10 +0200, Tamas K Lengyel wrote: > > > On Tue, Apr 21, 2015 at 3:14 PM, Ian Campbell > wrote: > On Mon, 2015-04-20 at 17:06 +0200, Tamas K Lengyel wrote: > > -paddr_t p2m_lookup(struct domain *d, paddr_t paddr, > p2m_type_t *t) > > +static paddr_t __p2m_lookup(struct domain *d, paddr_t > paddr, p2m_type_t *t) > > I'd have been inclined to make this take a p2m_domain* rather > than a > domain*, on the basis that the caller must have one in hand to > have > locked it. I don't think __p2m_lookup uses d other than to > find the p2m. > > Not worth changing unless there is some other reason to resend > though, > so with or without that: > > Acked-by: Ian Campbell > > Ian. > > > Thanks, I made the change as I'll have another round anyway to > introduce XENMEM_maximum_gpfn2 in the series. Great, thanks. FWIW there was another similar wrapper in another patch later on, but that one did use d so I didn't suggest the same change there for that reason. Ian.