[PATCH v1 0/3] enable MMU for RISC-V

Oleksii Kurochko posted 3 patches 1 year, 2 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
automation/scripts/qemu-smoke-riscv64.sh |   2 +-
xen/arch/riscv/Makefile                  |   1 +
xen/arch/riscv/include/asm/mm.h          |   9 +
xen/arch/riscv/include/asm/page.h        |  90 +++++++++
xen/arch/riscv/mm.c                      | 223 +++++++++++++++++++++++
xen/arch/riscv/setup.c                   |  11 ++
6 files changed, 335 insertions(+), 1 deletion(-)
create mode 100644 xen/arch/riscv/include/asm/mm.h
create mode 100644 xen/arch/riscv/include/asm/page.h
create mode 100644 xen/arch/riscv/mm.c
[PATCH v1 0/3] enable MMU for RISC-V
Posted by Oleksii Kurochko 1 year, 2 months ago
The patch series introduces the following things:
1. Functionality to build the page tables for Xen that map the
   following:
     * The physical location of Xen (where the bootloader loaded it)
     * The link-time location of Xen (where the linker expected Xen's
       addresses to be.
2. Load the built page table into the SATP
3. Enables MMU.
4. Updates smoke test to grep message which should be printed after
   MMU is enabled.

Oleksii Kurochko (3):
  xen/riscv: introduce setup_initial_pages
  xen/riscv: setup initial pagetables
  automation: update RISC-V smoke test

 automation/scripts/qemu-smoke-riscv64.sh |   2 +-
 xen/arch/riscv/Makefile                  |   1 +
 xen/arch/riscv/include/asm/mm.h          |   9 +
 xen/arch/riscv/include/asm/page.h        |  90 +++++++++
 xen/arch/riscv/mm.c                      | 223 +++++++++++++++++++++++
 xen/arch/riscv/setup.c                   |  11 ++
 6 files changed, 335 insertions(+), 1 deletion(-)
 create mode 100644 xen/arch/riscv/include/asm/mm.h
 create mode 100644 xen/arch/riscv/include/asm/page.h
 create mode 100644 xen/arch/riscv/mm.c

-- 
2.39.0
Re: [PATCH v1 0/3] enable MMU for RISC-V
Posted by Oleksii 1 year, 2 months ago
On Fri, 2023-02-24 at 17:06 +0200, Oleksii Kurochko wrote:
> The patch series introduces the following things:
> 1. Functionality to build the page tables for Xen that map the
>    following:
>      * The physical location of Xen (where the bootloader loaded it)
>      * The link-time location of Xen (where the linker expected Xen's
>        addresses to be.
> 2. Load the built page table into the SATP
> 3. Enables MMU.
> 4. Updates smoke test to grep message which should be printed after
>    MMU is enabled.
> 
> Oleksii Kurochko (3):
>   xen/riscv: introduce setup_initial_pages
>   xen/riscv: setup initial pagetables
>   automation: update RISC-V smoke test
> 
>  automation/scripts/qemu-smoke-riscv64.sh |   2 +-
>  xen/arch/riscv/Makefile                  |   1 +
>  xen/arch/riscv/include/asm/mm.h          |   9 +
>  xen/arch/riscv/include/asm/page.h        |  90 +++++++++
>  xen/arch/riscv/mm.c                      | 223
> +++++++++++++++++++++++
>  xen/arch/riscv/setup.c                   |  11 ++
>  6 files changed, 335 insertions(+), 1 deletion(-)
>  create mode 100644 xen/arch/riscv/include/asm/mm.h
>  create mode 100644 xen/arch/riscv/include/asm/page.h
>  create mode 100644 xen/arch/riscv/mm.c
> 

I forgot to mention in cover letter that the patch series is based on
top of 'introduce generic implementation of macros from bug.h' and
'RISCV basic exception handling implementation' patch series.