[PATCH v4 0/6] Enable early bootup of AArch64 MPU systems

Ayan Kumar Halder posted 6 patches 3 weeks, 2 days ago
Failed in applying to current master (apply log)
There is a newer version of this series
CHANGELOG.md                                 |   2 +
SUPPORT.md                                   |   1 +
xen/arch/Kconfig                             |   2 +
xen/arch/arm/Kconfig                         |  27 +++-
xen/arch/arm/arm32/head.S                    |   3 +
xen/arch/arm/arm64/Makefile                  |   1 +
xen/arch/arm/arm64/head.S                    |   2 +
xen/arch/arm/arm64/mpu/Makefile              |   2 +
xen/arch/arm/arm64/mpu/head.S                | 158 +++++++++++++++++++
xen/arch/arm/arm64/mpu/mm.c                  |  15 ++
xen/arch/arm/include/asm/arm64/mpu/sysregs.h |  30 ++++
xen/arch/arm/include/asm/config.h            |   4 +-
xen/arch/arm/include/asm/mm.h                |   2 +
xen/arch/arm/include/asm/mpu/arm64/mm.h      |  22 +++
xen/arch/arm/include/asm/mpu/layout.h        |  33 ++++
xen/arch/arm/include/asm/mpu/mm.h            |  20 +++
xen/arch/arm/platforms/Kconfig               |   2 +-
xen/arch/arm/smp.c                           |  11 ++
xen/arch/arm/xen.lds.S                       |   8 +
19 files changed, 342 insertions(+), 3 deletions(-)
create mode 100644 xen/arch/arm/arm64/mpu/Makefile
create mode 100644 xen/arch/arm/arm64/mpu/head.S
create mode 100644 xen/arch/arm/arm64/mpu/mm.c
create mode 100644 xen/arch/arm/include/asm/arm64/mpu/sysregs.h
create mode 100644 xen/arch/arm/include/asm/mpu/arm64/mm.h
create mode 100644 xen/arch/arm/include/asm/mpu/layout.h
create mode 100644 xen/arch/arm/include/asm/mpu/mm.h
[PATCH v4 0/6] Enable early bootup of AArch64 MPU systems
Posted by Ayan Kumar Halder 3 weeks, 2 days ago
We have enabled early booting of R82.

Changes from v2 :-
1. Added a new patch "xen/arm: Skip initializing the BSS section when it is empty".
2. Split "xen/arm: mpu: Create boot-time MPU protection regions" into 2 patches.

Changes from v3 :-
1. Removed some of the R-b as the patches have been modified.

Ayan Kumar Halder (6):
  xen/arm: Skip initializing the BSS section when it is empty
  xen/arm: mpu: Introduce choice between MMU and MPU
  xen/arm: mpu: Define Xen start address for MPU systems
  xen/arm: mpu: Create boot-time MPU protection regions
  xen/arm: mpu: Enable MPU
  xen/arm: mpu: Implement a dummy enable_secondary_cpu_mm

 CHANGELOG.md                                 |   2 +
 SUPPORT.md                                   |   1 +
 xen/arch/Kconfig                             |   2 +
 xen/arch/arm/Kconfig                         |  27 +++-
 xen/arch/arm/arm32/head.S                    |   3 +
 xen/arch/arm/arm64/Makefile                  |   1 +
 xen/arch/arm/arm64/head.S                    |   2 +
 xen/arch/arm/arm64/mpu/Makefile              |   2 +
 xen/arch/arm/arm64/mpu/head.S                | 158 +++++++++++++++++++
 xen/arch/arm/arm64/mpu/mm.c                  |  15 ++
 xen/arch/arm/include/asm/arm64/mpu/sysregs.h |  30 ++++
 xen/arch/arm/include/asm/config.h            |   4 +-
 xen/arch/arm/include/asm/mm.h                |   2 +
 xen/arch/arm/include/asm/mpu/arm64/mm.h      |  22 +++
 xen/arch/arm/include/asm/mpu/layout.h        |  33 ++++
 xen/arch/arm/include/asm/mpu/mm.h            |  20 +++
 xen/arch/arm/platforms/Kconfig               |   2 +-
 xen/arch/arm/smp.c                           |  11 ++
 xen/arch/arm/xen.lds.S                       |   8 +
 19 files changed, 342 insertions(+), 3 deletions(-)
 create mode 100644 xen/arch/arm/arm64/mpu/Makefile
 create mode 100644 xen/arch/arm/arm64/mpu/head.S
 create mode 100644 xen/arch/arm/arm64/mpu/mm.c
 create mode 100644 xen/arch/arm/include/asm/arm64/mpu/sysregs.h
 create mode 100644 xen/arch/arm/include/asm/mpu/arm64/mm.h
 create mode 100644 xen/arch/arm/include/asm/mpu/layout.h
 create mode 100644 xen/arch/arm/include/asm/mpu/mm.h

-- 
2.25.1
Re: [PATCH v4 0/6] Enable early bootup of AArch64 MPU systems
Posted by Julien Grall 2 weeks, 5 days ago
Hi Ayan,

On 28/10/2024 12:45, Ayan Kumar Halder wrote:
> We have enabled early booting of R82.
> 
> Changes from v2 :-
> 1. Added a new patch "xen/arm: Skip initializing the BSS section when it is empty".
> 2. Split "xen/arm: mpu: Create boot-time MPU protection regions" into 2 patches.
> 
> Changes from v3 :-
> 1. Removed some of the R-b as the patches have been modified.
> 
> Ayan Kumar Halder (6):
>    xen/arm: Skip initializing the BSS section when it is empty
>    xen/arm: mpu: Introduce choice between MMU and MPU
>    xen/arm: mpu: Define Xen start address for MPU systems

I have committed the first 3 patches. I think the others need a respin.

Cheers,

-- 
Julien Grall