From patchwork Fri Jun 30 15:54:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 106731 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2507514qge; Fri, 30 Jun 2017 08:57:09 -0700 (PDT) X-Received: by 10.36.3.11 with SMTP id e11mr8237710ite.79.1498838229194; Fri, 30 Jun 2017 08:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498838229; cv=none; d=google.com; s=arc-20160816; b=MpCCDoQtca0vZY1fZpss8Tq93I1nei+tcLHAbAlD1IufbqMf9T6fWPr/6EtH2sRS1x ZQqQUqkXxVmc0caWQIfoz/2jqOwu+rDHgN6NYeSoIPXaFxpPapeEPo9WZUjZHZJd7bNR nMdeAPfctRz3zQdTUCa2sGWdES2aSaOEUm/wd7yewLnc6xSWfUKgFJNrlBwa2hvpW78l 1MkDb1USPOgAaJAAp//FMHOIyobbbkf4P67k1fVk3kiNA6xxtPmQx5CgXAs+APc9hbBa CCp/PKg1Fs22edKADd6wYCdcDeuuDxhznIjR9UiWopvKYSlaqceemJdQ1jaCRW9hS4K2 C/Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=3vy9EXvMyDgcpYcax5dXYrNzwA5ICaqRIWHU+oud/s0=; b=wHiVc3LTMnNTeuvQfA+na/F0CShmUtEGZnqdnDrI6jZiJqVIYjabMU7vFIClXHpYLD /ov7UpdeP5A7+MfimomK0NcrBtURm1LlK5yXxkquSusveWt3eY9bFiaPjBYeZZ1yQvVf 6hDDP1otyr83IqjhkQ4ZEtTvJA5+1WIEeRQJnmBiZuQQMjcwZ0M/ixSg7A48jHg8FRyA LNZNLu+qIW+d3T8AWoCDk3s02N3bPiaqHohs0lvdpzlgR8H2BLqFh/HxlcEgHBtDcNza VAcadRZeJm2FgHC80ZnMv/2dZXXpswq30Ds1ZsfXxlGvbtJsrCHPNuTXDzfAzFwdI3/y OFhg== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id h67si7943272ioe.193.2017.06.30.08.57.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 08:57:09 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFk-0000NB-Q9; Fri, 30 Jun 2017 15:54:40 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFj-0000Mx-M3 for xen-devel@lists.xen.org; Fri, 30 Jun 2017 15:54:39 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 4A/3F-03582-F3476595; Fri, 30 Jun 2017 15:54:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRWlGSWpSXmKPExsVysyfVTdeuJCz S4NgrLYslHxezODB6HN39mymAMYo1My8pvyKBNePeg53sBa3sFY+2bGdsYJzJ2sXIxSEksJlR 4u/fm4xdjJxAzmlGiT1LzEBsNgFNiTufPzGB2CIC0hLXPl8Gq2EWcJB48/EeC4gtLBAj8XfDB TYQm0VAVeLO1eVANRwcvAKWEpcWeoGEJQTkJXa1XWQFsTkFrCSO/3vABLHKUuL1rKssExi5Fz AyrGJUL04tKkst0jXWSyrKTM8oyU3MzNE1NDDTy00tLk5MT81JTCrWS87P3cQI9C0DEOxg7Pj ndIhRkoNJSZR35bXQSCG+pPyUyozE4oz4otKc1OJDjDIcHEoSvGuKwiKFBItS01Mr0jJzgEEG k5bg4FES4ZUNAkrzFhck5hZnpkOkTjFacmxYvf4LE0fThy1A8tWE/9+YhFjy8vNSpcR500HmC YA0ZJTmwY2DRcIlRlkpYV5GoAOFeApSi3IzS1DlXzGKczAqCfNOAJnCk5lXArf1FdBBTEAHCc 8IATmoJBEhJdXAuCj6hsZyo+yJXjXa9Syz+ULehoceDjm8ZP6pnD2PQisCL3kqhM0+1CNaHrg zJ8nyqca3RwKsC5bregbH3HA6eGvy9rbL/UvXbr8+a5KlGoPG+7QUh6IX956nVCvLuR879uDz sU36uj0fbzuwX3O+U7b4DdO29Sw1WcEnD3+7JVT3fULvlhfvypRYijMSDbWYi4oTARPYX0t/A gAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1498838078!92584155!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.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7590 invoked from network); 30 Jun 2017 15:54:38 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-14.tower-27.messagelabs.com with SMTP; 30 Jun 2017 15:54:38 -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 F362C15AD; Fri, 30 Jun 2017 08:54:37 -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 61B373F41F; Fri, 30 Jun 2017 08:54:37 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 30 Jun 2017 16:54:16 +0100 Message-Id: <20170630155431.23824-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630155431.23824-1-julien.grall@arm.com> References: <20170630155431.23824-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v3 01/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" xenheap_mfn_end is storing an MFN and not a physical address. The value will be reset after the loop. So drop this bogus xenheap_mfn_end. Signed-off-by: Julien Grall --- Changes in v2: - Update commit message Changes in v3: - Don't mention the fact that Xen is not currently using xenheap_mfn_end. - Add Stefano's reviewed-by --- 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; }