mbox series

[v3,0/6] Enable early bootup of AArch64 MPU systems

Message ID 20241010140351.309922-1-ayan.kumar.halder@amd.com (mailing list archive)
Headers show
Series Enable early bootup of AArch64 MPU systems | expand

Message

Ayan Kumar Halder Oct. 10, 2024, 2:03 p.m. UTC
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.

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

 SUPPORT.md                                   |   1 +
 xen/arch/Kconfig                             |   2 +
 xen/arch/arm/Kconfig                         |  27 ++-
 xen/arch/arm/Makefile                        |   1 +
 xen/arch/arm/arm64/head.S                    |   2 +
 xen/arch/arm/arm64/mpu/Makefile              |   1 +
 xen/arch/arm/arm64/mpu/head.S                | 165 +++++++++++++++++++
 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/setup.c                         |  13 ++
 xen/arch/arm/xen.lds.S                       |   7 +
 16 files changed, 329 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/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

Comments

Oleksii Kurochko Oct. 10, 2024, 3:40 p.m. UTC | #1
Hello Ayan,

I think that we have to mention in CHANGELOG.md that experimental
support of Xen with MPU for Arm is added. ( if I understand correctly
what is this patch series about ).

Thanks.

~ Oleksii
On Thu, 2024-10-10 at 15:03 +0100, 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.
> 
> 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
> 
>  SUPPORT.md                                   |   1 +
>  xen/arch/Kconfig                             |   2 +
>  xen/arch/arm/Kconfig                         |  27 ++-
>  xen/arch/arm/Makefile                        |   1 +
>  xen/arch/arm/arm64/head.S                    |   2 +
>  xen/arch/arm/arm64/mpu/Makefile              |   1 +
>  xen/arch/arm/arm64/mpu/head.S                | 165
> +++++++++++++++++++
>  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/setup.c                         |  13 ++
>  xen/arch/arm/xen.lds.S                       |   7 +
>  16 files changed, 329 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/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
>
Ayan Kumar Halder Oct. 21, 2024, 11:02 a.m. UTC | #2
On 10/10/2024 16:40, oleksii.kurochko@gmail.com wrote:
> Hello Ayan,
Hi Oleksii,
>
> I think that we have to mention in CHANGELOG.md that experimental
> support of Xen with MPU for Arm is added. ( if I understand correctly
> what is this patch series about ).

Sure, I will add this. I will send this in v4.

- Ayan