Re: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-22 Thread Andrew Cooper
On 22/09/2020 19:39, Julien Grall wrote: > Hi Jan, > > On 22/09/2020 09:02, Jan Beulich wrote: >> On 21.09.2020 20:02, Julien Grall wrote: >>> --- a/xen/include/xen/mm.h >>> +++ b/xen/include/xen/mm.h >>> @@ -685,4 +685,17 @@ static inline void put_page_alloc_ref(struct >>> page_info *page) >>>    

RE: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-22 Thread Lengyel, Tamas
i Liu > ; Lengyel, Tamas > Subject: Re: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers > when !CONFIG_HAVE_M2P > > On 22/09/2020 19:39, Julien Grall wrote: > > Hi Jan, > > > > On 22/09/2020 09:02, Jan Beulich wrote: > >> On 21.09.2020 20:02, Julien Grall w

Re: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-22 Thread Julien Grall
Hi Jan, On 22/09/2020 09:02, Jan Beulich wrote: On 21.09.2020 20:02, Julien Grall wrote: --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -685,4 +685,17 @@ static inline void put_page_alloc_ref(struct page_info *page) } } +/* + * Dummy implementation of M2P-related helpers

Re: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-22 Thread Jan Beulich
On 21.09.2020 20:02, Julien Grall wrote: > --- a/xen/include/xen/mm.h > +++ b/xen/include/xen/mm.h > @@ -685,4 +685,17 @@ static inline void put_page_alloc_ref(struct page_info > *page) > } > } > > +/* > + * Dummy implementation of M2P-related helpers for common code when > + * the archite

Re: [PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-21 Thread Andrew Cooper
On 21/09/2020 19:02, Julien Grall wrote: > diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h > index 4536a62940a1..15bb0aa30d22 100644 > --- a/xen/include/xen/mm.h > +++ b/xen/include/xen/mm.h > @@ -685,4 +685,17 @@ static inline void put_page_alloc_ref(struct page_info > *page) > } >

[PATCH v4 4/4] xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

2020-09-21 Thread Julien Grall
From: Julien Grall At the moment, Arm is providing a dummy implementation for the M2P helpers used in common code. However, they are quite isolated and could be used by other architecture in the future. So move all the helpers in xen/mm.h. Signed-off-by: Julien Grall --- Changes in v4: