Re: [PATCH v6 2/4] xen/riscv: introduce setup_initial_pages

2023-05-11 Thread Oleksii
On Tue, 2023-05-09 at 16:38 +0200, Jan Beulich wrote: > On 09.05.2023 14:59, Oleksii wrote: > > On Mon, 2023-05-08 at 10:58 +0200, Jan Beulich wrote: > > > On 03.05.2023 18:31, Oleksii Kurochko wrote: > > > > --- /dev/null > > > > +++ b/xen/arch/riscv/include/asm/page.h > > > > @@ -0,0 +1,62 @@ > >

Re: [PATCH v6 2/4] xen/riscv: introduce setup_initial_pages

2023-05-09 Thread Jan Beulich
On 09.05.2023 14:59, Oleksii wrote: > On Mon, 2023-05-08 at 10:58 +0200, Jan Beulich wrote: >> On 03.05.2023 18:31, Oleksii Kurochko wrote: >>> --- /dev/null >>> +++ b/xen/arch/riscv/include/asm/page.h >>> @@ -0,0 +1,62 @@ >>> +#ifndef _ASM_RISCV_PAGE_H >>> +#define _ASM_RISCV_PAGE_H >>> + >>> +#in

Re: [PATCH v6 2/4] xen/riscv: introduce setup_initial_pages

2023-05-09 Thread Oleksii
On Mon, 2023-05-08 at 10:58 +0200, Jan Beulich wrote: > On 03.05.2023 18:31, Oleksii Kurochko wrote: > > --- a/xen/arch/riscv/include/asm/config.h > > +++ b/xen/arch/riscv/include/asm/config.h > > @@ -70,12 +70,23 @@ > >    name: > >  #endif > >   > > -#define XEN_VIRT_START  _AT(UL, 0x8020) >

Re: [PATCH v6 2/4] xen/riscv: introduce setup_initial_pages

2023-05-08 Thread Jan Beulich
On 03.05.2023 18:31, Oleksii Kurochko wrote: > --- a/xen/arch/riscv/include/asm/config.h > +++ b/xen/arch/riscv/include/asm/config.h > @@ -70,12 +70,23 @@ >name: > #endif > > -#define XEN_VIRT_START _AT(UL, 0x8020) > +#ifdef CONFIG_RISCV_64 > +#define XEN_VIRT_START 0xC000 /

[PATCH v6 2/4] xen/riscv: introduce setup_initial_pages

2023-05-03 Thread Oleksii Kurochko
The idea was taken from xvisor but the following changes were done: * Use only a minimal part of the code enough to enable MMU * rename {_}setup_initial_pagetables functions * add an argument for setup_initial_mapping to have an opportunity to make set PTE flags. * update setup_initial_pagetables