From patchwork Mon Jun 19 16:57:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9796833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 93CD6600C5 for ; Mon, 19 Jun 2017 17:00:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BCCF27F8F for ; Mon, 19 Jun 2017 17:00:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70784281F9; Mon, 19 Jun 2017 17:00:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E139C27F8F for ; Mon, 19 Jun 2017 17:00:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dN006-0003hO-1g; Mon, 19 Jun 2017 16:58:06 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dN004-0003gl-Od for xen-devel@lists.xen.org; Mon, 19 Jun 2017 16:58:04 +0000 Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id 2F/75-01730-C9208495; Mon, 19 Jun 2017 16:58:04 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGLMWRWlGSWpSXmKPExsVysyfVTXc2k0e kwdFeTYslHxezODB6HN39mymAMYo1My8pvyKBNePGyzvMBYvYKpafXcPYwHifpYuRk0NIYBOj xNMD0V2MXED2aUaJ75des4Ek2AQ0Je58/sQEYosISEtc+3yZEcRmFnCQePPxHlizsECMxLq9O 9m7GDk4WARUJaauFQMJ8wpYSrw+dwasVUJAXmJX20VWEJtTwEri+/xrjBB7LSWOP7nFNoGRew EjwypG9eLUorLUIl0jvaSizPSMktzEzBxdQwNTvdzU4uLE9NScxKRiveT83E2MQN8yAMEOxu9 /nA4xSnIwKYnyzvrvHinEl5SfUpmRWJwRX1Sak1p8iFGGg0NJgncTo0ekkGBRanpqRVpmDjDI YNISHDxKIrw1v4FaeYsLEnOLM9MhUqcYjTk2rF7/hYmj6cOWL0xCLHn5ealS4rwnQSYJgJRml ObBDYIF/yVGWSlhXkag04R4ClKLcjNLUOVfMYpzMCoJ8z4FmcKTmVcCt+8V0ClMQKcwn3EBOa UkESEl1cBYlmNSv1GRMcLo+qbweZWm65tlCo4s7GK+a25q073xwMWVf71lOiqnWi7fu8w38LF 8Yfqq1N0VpueTr6ZY5c6e0+YxQzxdvObfS8kc1vq/TPwHmd5HFbSttrqf+YV3wfmPmxS6T+k1 t57+dtJultfvmWdnGkxREHjQc3/plfUJdjcKM94Z8rcqsRRnJBpqMRcVJwIAKkuOmnkCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1497891483!103918904!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 32320 invoked from network); 19 Jun 2017 16:58:03 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-6.tower-206.messagelabs.com with SMTP; 19 Jun 2017 16:58:03 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD4C5344; Mon, 19 Jun 2017 09:58:02 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C58A3F41F; Mon, 19 Jun 2017 09:58:02 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 19 Jun 2017 17:57:39 +0100 Message-Id: <20170619165753.25049-3-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170619165753.25049-1-julien.grall@arm.com> References: <20170619165753.25049-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 02/16] xen/arm: setup: Remove bogus xenheap_mfn_end in setup_mm for arm64 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP xenheap_mfn_end is storing an MFN and not a physical address. Xen is not currently using xenheap_mfn_end and the value will be reset after the loop. So drop this bogus xenheap_mfn_end. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Update commit message --- xen/arch/arm/setup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index f00f29a45b..ab4d8e4218 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -654,8 +654,6 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size) if ( e > bank_end ) e = bank_end; - xenheap_mfn_end = e; - dt_unreserved_regions(s, e, init_boot_pages, 0); s = n; }