Re: [PATCH v5 9/9] xen: retrieve reserved pages on populate_physmap

2022-05-31 Thread Julien Grall
Hi, On 31/05/2022 10:40, Jan Beulich wrote: On 31.05.2022 11:35, Julien Grall wrote: On 31/05/2022 09:54, Jan Beulich wrote: On 31.05.2022 05:12, Penny Zheng wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a)

Re: [PATCH v5 9/9] xen: retrieve reserved pages on populate_physmap

2022-05-31 Thread Jan Beulich
On 31.05.2022 11:35, Julien Grall wrote: > On 31/05/2022 09:54, Jan Beulich wrote: >> On 31.05.2022 05:12, Penny Zheng wrote: >>> --- a/xen/common/memory.c >>> +++ b/xen/common/memory.c >>> @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a) >>> >>> mfn =

Re: [PATCH v5 9/9] xen: retrieve reserved pages on populate_physmap

2022-05-31 Thread Julien Grall
Hi Jan, On 31/05/2022 09:54, Jan Beulich wrote: On 31.05.2022 05:12, Penny Zheng wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a) mfn = _mfn(gpfn); } +else if (

Re: [PATCH v5 9/9] xen: retrieve reserved pages on populate_physmap

2022-05-31 Thread Jan Beulich
On 31.05.2022 05:12, Penny Zheng wrote: > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a) > > mfn = _mfn(gpfn); > } > +else if ( is_domain_using_staticmem(d) ) > +

[PATCH v5 9/9] xen: retrieve reserved pages on populate_physmap

2022-05-30 Thread Penny Zheng
When a static domain populates memory through populate_physmap at runtime, it shall retrieve reserved pages from resv_page_list to make sure that guest RAM is still restricted in statically configured memory regions. This commit also introduces a new helper acquire_reserved_page to make it work.