Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-06-08 Thread Stefano Stabellini
On Wed, 8 Jun 2022, Julien Grall wrote: > On 08/06/2022 02:08, Stefano Stabellini wrote: > > > diff --git a/xen/arch/arm/include/asm/pmap.h > > > b/xen/arch/arm/include/asm/pmap.h > > > new file mode 100644 > > > index ..74398b4c4fe6 > > > --- /dev/null > > > +++

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-06-08 Thread Julien Grall
Hi Stefano, On 08/06/2022 02:08, Stefano Stabellini wrote: diff --git a/xen/arch/arm/include/asm/pmap.h b/xen/arch/arm/include/asm/pmap.h new file mode 100644 index ..74398b4c4fe6 --- /dev/null +++ b/xen/arch/arm/include/asm/pmap.h @@ -0,0 +1,32 @@ +#ifndef __ASM_PMAP_H__ +#define

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-06-07 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Wei Liu > > The basic idea is like Persistent Kernel Map (PKMAP) in Linux. We > pre-populate all the relevant page tables before the system is fully > set up. > > We will need it on Arm in order to rework the arm64 version of >

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-05-26 Thread Luca Fancellu
> On 20 May 2022, at 13:09, Julien Grall wrote: > > From: Wei Liu > > The basic idea is like Persistent Kernel Map (PKMAP) in Linux. We > pre-populate all the relevant page tables before the system is fully > set up. > > We will need it on Arm in order to rework the arm64 version of >

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-05-24 Thread Julien Grall
On 24/05/2022 03:11, Wei Chen wrote: Hi Julien, Hi Wei, diff --git a/xen/arch/arm/include/asm/pmap.h b/xen/arch/arm/include/asm/pmap.h new file mode 100644 index ..74398b4c4fe6 --- /dev/null +++ b/xen/arch/arm/include/asm/pmap.h @@ -0,0 +1,32 @@ +#ifndef __ASM_PMAP_H__

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-05-23 Thread Wei Chen
Hi Julien, On 2022/5/20 20:09, Julien Grall wrote: From: Wei Liu The basic idea is like Persistent Kernel Map (PKMAP) in Linux. We pre-populate all the relevant page tables before the system is fully set up. We will need it on Arm in order to rework the arm64 version of

Re: [PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-05-21 Thread Julien Grall
Hi, On 20/05/2022 13:09, Julien Grall wrote: +void __init pmap_unmap(const void *p) +{ +unsigned int idx; +unsigned int slot = virt_to_fix((unsigned long)p); + +ASSERT(system_state < SYS_STATE_smp_boot); +ASSERT(slot >= FIXMAP_PMAP_BEGIN && slot <= FIXMAP_PMAP_END); +

[PATCH 10/16] xen/arm: add Persistent Map (PMAP) infrastructure

2022-05-20 Thread Julien Grall
From: Wei Liu The basic idea is like Persistent Kernel Map (PKMAP) in Linux. We pre-populate all the relevant page tables before the system is fully set up. We will need it on Arm in order to rework the arm64 version of xenheap_setup_mappings() as we may need to use pages allocated from the