From nobody Sat May 4 17:48:20 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1571224458; cv=none; d=zoho.com; s=zohoarc; b=Ve4HhL0/eXWVhe7UU5HAwAftVTzvBnpHB2tWv+mncQ6kdN4z0pvZyTkyvEezo7n4Vjtzm1shJd4wg20RTnsxeNMthH4B/o96Jx/aZ4VY4DTPnHRiScSm3s82tm+2Nk1ybFNGE0Y0ADpzZok6NUpq1ACx1ERolsDlC+nYxvWxAp0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571224458; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=UOgOI81HcVnxbEl/uTrz+mOtUCD/HL0ZO1e2lunUUQM=; b=E5KZ//728n7mBozLbgBnHnP4YBbKD4oGeNYoZ+bIoDIRAkCeDnAXPwfkI+n3mQpIC5BEvmR/XztbNOvh2Lzl7z5pYTKJ/h1RLVODMjgCUT8BaLOrf3ylfnIpx4RbjTSOhrZiemgP8zXf52tmgtDJCRCEHhl96p8ibvzBLf/x4ec= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1571224458502130.50712895455956; Wed, 16 Oct 2019 04:14:18 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iKhEj-0004WE-7E; Wed, 16 Oct 2019 11:13:01 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iKhEi-0004Vh-GA for xen-devel@lists.xenproject.org; Wed, 16 Oct 2019 11:13:00 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id e7f3be20-f005-11e9-beca-bc764e2007e4; Wed, 16 Oct 2019 11:12:56 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D5EC1570; Wed, 16 Oct 2019 04:12:56 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7CCB43F6C4; Wed, 16 Oct 2019 04:12:55 -0700 (PDT) X-Inumbo-ID: e7f3be20-f005-11e9-beca-bc764e2007e4 From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 16 Oct 2019 12:12:51 +0100 Message-Id: <20191016111251.29214-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH for-4.13] xen/arm: setup: Calculate correctly the size of Xen X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: jgross@suse.com, Volodymyr Babchuk , Julien Grall , Stefano Stabellini , Julien Grall MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The current size of Xen is computed using _end - _start + 1. However, _end is pointing one past the end of Xen, so the size of Xen is off-by-one. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 705a917abf..51d32106b7 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -819,7 +819,7 @@ void __init start_xen(unsigned long boot_phys_offset, /* Register Xen's load address as a boot module. */ xen_bootmodule =3D add_boot_module(BOOTMOD_XEN, (paddr_t)(uintptr_t)(_start + boot_phys_offse= t), - (paddr_t)(uintptr_t)(_end - _start + 1), fals= e); + (paddr_t)(uintptr_t)(_end - _start), false); BUG_ON(!xen_bootmodule); =20 fdt_size =3D boot_fdt_info(device_tree_flattened, fdt_paddr); --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel