[PATCH v4 0/2] xen/arm: Enlarge identity map space

Leo Yan posted 2 patches 6 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20231013122658.1270506-1-leo.yan@linaro.org
xen/arch/arm/arm64/mm.c               |  6 ++++--
xen/arch/arm/include/asm/mmu/layout.h | 17 +++++++++--------
2 files changed, 13 insertions(+), 10 deletions(-)
[PATCH v4 0/2] xen/arm: Enlarge identity map space
Posted by Leo Yan 6 months, 2 weeks ago
The latest Xen fails to boot on ADLink AVA platform.  Alexey Klimov root
caused the issue is related with the commit 1c78d76b67 ("xen/arm64: mm:
Introduce helpers to prepare/enable/disable").

This is because on ADLink AVA platform, it loads Xen hypervisor to the
address above 8TB and hence causes Xen panic (see patch 02 for details).

To fix this issue, this series is to enlarge identity map space to 10TB.

Note, I did a smoke test for this patch set, but we have no chance to
test it on the AVA board which reported the issue since the board is
bricked now.  And it's likely we don't need this patch set anymore after
updating firmware on the AVA machine.

Hope this patch set can be helpful for the system with big memory, I'd
leave the judgement to maintainers for picking it or not.

Changes from v3:
- Changed the identity map space from 127TB to 10TB (Julien Grall).

Changes from v2:
- Kept macro naming IDENTITY_MAPPING_AREA_NR_L0 and removed introduced
  macros (Julien Grall).
- Minor improvement for coding style (Julien Grall).
- Added platform's detail in the patch 02 commit log (Julien Grall).

Changes from v1:
- Rebased on staging branch (Bertrand);
- Added Alexey Klimov tested tag for patch 01 (Alexey).
- Corrected the printing log with dynamically calculation ID map size.


Leo Yan (2):
  xen/arm: Add macro XEN_VM_MAPPING
  xen/arm: Enlarge identity map space to 10TB

 xen/arch/arm/arm64/mm.c               |  6 ++++--
 xen/arch/arm/include/asm/mmu/layout.h | 17 +++++++++--------
 2 files changed, 13 insertions(+), 10 deletions(-)

-- 
2.39.2