From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen/arm: Implement domain_get_maximum_gpfn Date: Wed, 09 Jul 2014 12:38:53 +0100 Message-ID: <53BD29CD.4020204@linaro.org> References: <1404226666-7949-1-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X4qDC-0004vf-Ow for xen-devel@lists.xenproject.org; Wed, 09 Jul 2014 11:38:58 +0000 Received: by mail-wg0-f43.google.com with SMTP id b13so7226714wgh.26 for ; Wed, 09 Jul 2014 04:38:57 -0700 (PDT) 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: ian.campbell@citrix.com Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi Ian, On 07/01/2014 05:57 PM, Stefano Stabellini wrote: > On Tue, 1 Jul 2014, Julien Grall wrote: >> The function domain_get_maximum_gpfn is returning the maximum gpfn ever >> mapped in the guest. We can use d->arch.p2m.max_mapped_gfn for this purpose. >> >> Signed-off-by: Julien Grall > > Acked-by: Stefano Stabellini Following the discussion on this thread, I will send a patch to fix xc_dom_gnttab_hvm_seed at least for ARM. Not sure what to do on x86, I may keep the same behavior. I think this patch is still relevant and won't break things as we don't have platform with 48bits PA support. Ian, do I have your ack on this patch? >> xen/arch/arm/mm.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c >> index 03a0533..2d40f07 100644 >> --- a/xen/arch/arm/mm.c >> +++ b/xen/arch/arm/mm.c >> @@ -947,7 +947,7 @@ int page_is_ram_type(unsigned long mfn, unsigned long mem_type) >> >> unsigned long domain_get_maximum_gpfn(struct domain *d) >> { >> - return -ENOSYS; >> + return d->arch.p2m.max_mapped_gfn; >> } >> >> void share_xen_page_with_guest(struct page_info *page, >> -- >> 1.7.10.4 >> Regards, -- Julien Grall