From patchwork Tue Jul 1 14:57:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 32894 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 04424203C0 for ; Tue, 1 Jul 2014 14:59:14 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf61210619oag.4 for ; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-post:list-help :list-subscribe:mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive :content-type:content-transfer-encoding; bh=6RtBbDKkKi2vOnDCqoalRso85Sh1qMJD3L0UROf144M=; b=O2mZJy7JRdvW9S7yVpG1ccCgHar/uRZR/pOApDF5dGZxRlguzapdAjODIJ5gHQ/2zY q8IQQXS9UO3AACmvnlawUFLTQqik3sOAsuQf+aRbRzLAX2Locbe8l4l4BnAAAYhxe/bE i7mIE9scCn+KIHmNy3wu0e7191Yj8zgZhAyvfxU1hFBNOVTLeoK780o6VKW7KspEERlh +xOCXZ+cWuUUpgTt5TyfgxirhJ+FlgxbDPaWR++n2SqQGuLdfTVs2tqNBvBU9Lk1LHnZ 3bCdztYSbno1Nhrm5Up92jLOy2RLR9Q8i3d1wcUH6au7gLD0j7Q5xFEhbdqRCOp8H59r 2+lw== X-Gm-Message-State: ALoCoQnKX+lHEjmlF+KoOjEvVT8iRK4y0zUYK4vmQR2fs3M95jnyQ1Z+lXDRhKutOedPbpET4tc+ X-Received: by 10.182.197.172 with SMTP id iv12mr24226961obc.1.1404226754384; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.148 with SMTP id 20ls442334qgb.78.gmail; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) X-Received: by 10.52.163.208 with SMTP id yk16mr1672963vdb.36.1404226754278; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id r3si9981353vem.40.2014.07.01.07.59.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 07:59:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jw12so9592144veb.25 for ; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) X-Received: by 10.52.139.101 with SMTP id qx5mr36902428vdb.17.1404226754187; Tue, 01 Jul 2014 07:59:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp221321vcb; Tue, 1 Jul 2014 07:59:13 -0700 (PDT) X-Received: by 10.43.144.80 with SMTP id jp16mr3068566icc.87.1404226753651; Tue, 01 Jul 2014 07:59:13 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id e3si10482984igx.4.2014.07.01.07.59.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 01 Jul 2014 07:59:13 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X1zVT-0001JX-Il; Tue, 01 Jul 2014 14:58:03 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X1zVR-0001JS-H5 for xen-devel@lists.xenproject.org; Tue, 01 Jul 2014 14:58:02 +0000 Received: from [85.158.139.211:62155] by server-5.bemta-5.messagelabs.com id 94/60-23588-87CC2B35; Tue, 01 Jul 2014 14:58:00 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-15.tower-206.messagelabs.com!1404226678!9670897!1 X-Originating-IP: [209.85.212.180] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16277 invoked from network); 1 Jul 2014 14:57:58 -0000 Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com) (209.85.212.180) by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 1 Jul 2014 14:57:58 -0000 Received: by mail-wi0-f180.google.com with SMTP id hi2so7922683wib.1 for ; Tue, 01 Jul 2014 07:57:55 -0700 (PDT) X-Received: by 10.180.37.42 with SMTP id v10mr36786916wij.43.1404226675574; Tue, 01 Jul 2014 07:57:55 -0700 (PDT) Received: from belegaer.uk.xensource.com ([185.25.64.249]) by mx.google.com with ESMTPSA id s3sm48644733wje.36.2014.07.01.07.57.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jul 2014 07:57:54 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 1 Jul 2014 15:57:46 +0100 Message-Id: <1404226666-7949-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH] xen/arm: Implement domain_get_maximum_gpfn X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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 --- 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,