[PATCH 0/3] xen/arm64: Rework the MMU-off code (idmap) so it is self-contained

Julien Grall posted 3 patches 3 months, 1 week ago
Failed in applying to current master (apply log)
There is a newer version of this series
xen/arch/arm/arm64/head.S               | 14 +++----
xen/arch/arm/arm64/mmu/head.S           |  2 +-
xen/arch/arm/arm64/mmu/mm.c             |  7 ++++
xen/arch/arm/include/asm/arm64/macros.h |  9 +++--
xen/arch/arm/mmu/smpboot.c              |  4 +-
xen/arch/arm/psci.c                     |  5 ++-
xen/arch/arm/smpboot.c                  | 49 ++++++++++++++++++++++---
7 files changed, 72 insertions(+), 18 deletions(-)
[PATCH 0/3] xen/arm64: Rework the MMU-off code (idmap) so it is self-contained
Posted by Julien Grall 3 months, 1 week ago
From: Julien Grall <jgrall@amazon.com>

Hi all,

Right now, the MMU-off code will access may access data that are either
in .rodata or .data. With the enablement of cache coloring, Xen may
not be physcally contiguous anymore when secondary CPUs are brought up.

There are multiple way to solve this problem. The first is to keep
a copy of Xen physically contiguous in memory. The downside is this
means we are using up to 8MB (maximum size of Xen) when only a few
KBs is necessary.

This series is reworking the logic so all the MMU-off code is now
self-contained for secondary boot CPUs on arm64.

On arm32, this is not yet possible because secondary CPUs needs to
rebuild boot page-tables.

Cheers,

Julien Grall (3):
  arm/smpboot: Move smp_up_cpu to a new section .data.idmap
  xen/arm64: head: Use PRINT_ID() for secondary CPU MMU-off boot code
  [DO NOT COMMIT] xen/arm: Create a trampoline for secondary boot CPUs

 xen/arch/arm/arm64/head.S               | 14 +++----
 xen/arch/arm/arm64/mmu/head.S           |  2 +-
 xen/arch/arm/arm64/mmu/mm.c             |  7 ++++
 xen/arch/arm/include/asm/arm64/macros.h |  9 +++--
 xen/arch/arm/mmu/smpboot.c              |  4 +-
 xen/arch/arm/psci.c                     |  5 ++-
 xen/arch/arm/smpboot.c                  | 49 ++++++++++++++++++++++---
 7 files changed, 72 insertions(+), 18 deletions(-)

-- 
2.40.1