[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/2] xen/arm: Enlarge identity map space to 10TB


  • To: Leo Yan <leo.yan@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 16 Oct 2023 10:44:13 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MYcbKwUO7htz7Cu1Qpuikto4rkjlWi7xYiLx6TNI+9g=; b=bBz1ZoMeibs8xL35cFPRaxUFSistP8RPSoyeIejPyoPlWVgWvtkK/oyRWBYoHkslOmtSSSOxyyEfHkD0SyOFGIhCibGYaHBANO3tcoRde8eZ8RkIYJJWeZRAIbV1ztj/gILauwgnC0CfDVGGkhhNrrugd34koAB+iSx+E7TS2VKcpg+thN+BLK26l0CQSy4ud2F/evcVkZdXJwEek47qhu6UFHA0+QcciGwYZ000ZsHHaHX8mOa8NkDj6tvT4v7/sl0nKdNKuqlDW1zaEKQPABCJ8T9+cakEPW8o/51xalEp8WKv/wEsGxjXvLPbNcDHxPcE1TojRyifJHtiJhspGA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9FkYzSEFC7zwMqYsvnUfCvBxVW98EI77/u9jlZ/CMU5bk6zXvkKKhh4wiRdfAQ0iPP0TCadwryGRl+GG/Ttu7LuqEAOggHzBYGKA8HIEKXkIUObUmwJBIFwxmSq/M8UOTM0/soToYEw5W+r9j2EBqXm1+Y/QYDkRqOMBQ8jr0IWTyzBBSEExS31DMAiK8x2DOv2oKaf73YFf2p5KBv3ISNgfiM4BXGV7/upYPcSoGmzuS7HrkowkFb8LKW+4zx9KEyk7ippPp1ahurcLShq2QnlO0B3MoXotzbcb9LpTFuKRP3ISSNfGgjsiRIR5/itbw3VChTZmCyUxQXNEEMx6A==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Alexey Klimov <alexey.klimov@xxxxxxxxxx>
  • Delivery-date: Mon, 16 Oct 2023 08:44:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi,

On 13/10/2023 14:26, Leo Yan wrote:
> 
> 
> On ADLink AVA platform (Ampere Altra SoC with 32 Arm Neoverse N1 cores),
> the physical memory regions are:
> 
>   DRAM memory regions:
>     Node[0] Region[0]: 0x000080000000 - 0x0000ffffffff
>     Node[0] Region[1]: 0x080000000000 - 0x08007fffffff
>     Node[0] Region[2]: 0x080100000000 - 0x0807ffffffff
> 
> The UEFI loads Xen hypervisor and DTB into the high memory, the kernel
> and ramdisk images are loaded into the low memory space:
> 
>   (XEN) MODULE[0]: 00000807f6df0000 - 00000807f6f3e000 Xen
>   (XEN) MODULE[1]: 00000807f8054000 - 00000807f8056000 Device Tree
>   (XEN) MODULE[2]: 00000000fa834000 - 00000000fc5de1d5 Ramdisk
>   (XEN) MODULE[3]: 00000000fc5df000 - 00000000ffb3f810 Kernel
> 
> In this case, the Xen binary is loaded above 8TB, which exceeds the
> maximum supported identity map space of 2TB in Xen. Consequently, the
> system fails to boot.
> 
> This patch enlarges identity map space to 10TB, allowing module loading
> within the range of [0x0 .. 0x000009ff_ffff_ffff].
> 
> Fixes: 1c78d76b67 ("xen/arm64: mm: Introduce helpers to 
> prepare/enable/disable")
I don't think a fixes tag applies here given that 2TB was just a number we 
believed is enough
and all of this is platform dependent. This can be dropped on commit if 
committer agrees.

> Reported-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
> Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.