Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-03-09 Thread Oleksii
On Thu, 2023-03-09 at 10:46 +0100, Jan Beulich wrote: > On 08.03.2023 17:16, Oleksii wrote: > > On Wed, 2023-03-08 at 16:17 +0100, Jan Beulich wrote: > > > On 08.03.2023 15:54, Oleksii wrote: > > > > Actually after my latest experiments it looks that we don't > > > > need to > > > > calculate that

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-03-09 Thread Jan Beulich
On 08.03.2023 17:16, Oleksii wrote: > On Wed, 2023-03-08 at 16:17 +0100, Jan Beulich wrote: >> On 08.03.2023 15:54, Oleksii wrote: >>> Actually after my latest experiments it looks that we don't need to >>> calculate that things at all because for RISC-V it is  used >>> everywhere >>> PC-relative a

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-03-08 Thread Oleksii
On Wed, 2023-03-08 at 16:17 +0100, Jan Beulich wrote: > On 08.03.2023 15:54, Oleksii wrote: > > Actually after my latest experiments it looks that we don't need to > > calculate that things at all because for RISC-V it is  used > > everywhere > > PC-relative access. > > Thereby it doesn't matter wh

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-03-08 Thread Jan Beulich
On 08.03.2023 15:54, Oleksii wrote: > Actually after my latest experiments it looks that we don't need to > calculate that things at all because for RISC-V it is used everywhere > PC-relative access. > Thereby it doesn't matter what is an address where Xen was loaded and > linker address. > Right

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-03-08 Thread Oleksii
On Mon, 2023-02-27 at 17:45 +, Julien Grall wrote: > Hi, > > On 27/02/2023 17:17, Oleksii wrote: > > On Sat, 2023-02-25 at 18:05 +, Julien Grall wrote: > > > Hi, > > > > > > On 24/02/2023 15:06, Oleksii Kurochko wrote: > > > > Calculate load and linker linker image addresses and > > > > s

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-27 Thread Julien Grall
Hi, On 27/02/2023 17:17, Oleksii wrote: On Sat, 2023-02-25 at 18:05 +, Julien Grall wrote: Hi, On 24/02/2023 15:06, Oleksii Kurochko wrote: Calculate load and linker linker image addresses and setup initial pagetables. Signed-off-by: Oleksii Kurochko ---   xen/arch/riscv/setup.c | 11 +

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-27 Thread Oleksii
On Sat, 2023-02-25 at 18:05 +, Julien Grall wrote: > Hi, > > On 24/02/2023 15:06, Oleksii Kurochko wrote: > > Calculate load and linker linker image addresses and > > setup initial pagetables. > > > > Signed-off-by: Oleksii Kurochko > > --- > >   xen/arch/riscv/setup.c | 11 +++ > >  

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-27 Thread Julien Grall
On 27/02/2023 15:17, Jan Beulich wrote: On 25.02.2023 19:05, Julien Grall wrote: On 24/02/2023 15:06, Oleksii Kurochko wrote: @@ -43,6 +45,11 @@ static void __init disable_fpu(void) void __init noreturn start_xen(void) { +unsigned long load_start= (unsigned long)start; +

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-27 Thread Jan Beulich
On 25.02.2023 19:05, Julien Grall wrote: > On 24/02/2023 15:06, Oleksii Kurochko wrote: >> @@ -43,6 +45,11 @@ static void __init disable_fpu(void) >> >> void __init noreturn start_xen(void) >> { >> +unsigned long load_start= (unsigned long)start; >> +unsigned long load_end =

Re: [PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-25 Thread Julien Grall
Hi, On 24/02/2023 15:06, Oleksii Kurochko wrote: Calculate load and linker linker image addresses and setup initial pagetables. Signed-off-by: Oleksii Kurochko --- xen/arch/riscv/setup.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv

[PATCH v1 2/3] xen/riscv: setup initial pagetables

2023-02-24 Thread Oleksii Kurochko
Calculate load and linker linker image addresses and setup initial pagetables. Signed-off-by: Oleksii Kurochko --- xen/arch/riscv/setup.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index b7cd438a1d..f69bc278bb 100644 --- a/xen