Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-04-04 Thread Jan Beulich
l ; Stefano Stabellini >> ; Wei Liu ; xen- >> de...@lists.xenproject.org >> Subject: Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on >> static allocation >> >> On 31.03.2022 08:13, Penny Zheng wrote: >>> Hi Jan >>> >>>> --

RE: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-04-02 Thread Penny Zheng
> Subject: Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on > static allocation > > Hi Penny, > > On 31/03/2022 11:30, Penny Zheng wrote: > > Another reason I want to keep page allocated is that if putting pages > > in resv_page_list upon dropping th

Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-04-01 Thread Julien Grall
Hi Penny, On 31/03/2022 11:30, Penny Zheng wrote: Another reason I want to keep page allocated is that if putting pages in resv_page_list upon dropping the last ref, we need to do a lot things on pages to totally let it free, like set its owner to NULL, changing page state from in_use to free, e

Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-04-01 Thread Julien Grall
Hi Jan, On 30/03/2022 10:52, Jan Beulich wrote: On 30.03.2022 11:36, Penny Zheng wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -35,6 +35,10 @@ #include #endif +#ifndef is_domain_on_static_allocation +#define is_domain_on_static_allocation(d) 0 Nit: "false", not "0".

RE: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-03-31 Thread Penny Zheng
PM > >> To: Penny Zheng > >> Cc: Wei Chen ; Henry Wang > ; > >> Andrew Cooper ; George Dunlap > >> ; Julien Grall ; Stefano > >> Stabellini ; Wei Liu ; xen- > >> de...@lists.xenproject.org > >> Subject: Re: [PATCH v1 3/5] xen/arm: unpop

Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-03-31 Thread Jan Beulich
l ; Stefano Stabellini >> ; Wei Liu ; xen- >> de...@lists.xenproject.org >> Subject: Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on >> static allocation >> >> On 30.03.2022 11:36, Penny Zheng wrote: >>> --- a/xen/common/memory.c >

RE: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-03-30 Thread Penny Zheng
gt; Subject: Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on > static allocation > > On 30.03.2022 11:36, Penny Zheng wrote: > > --- a/xen/common/memory.c > > +++ b/xen/common/memory.c > > @@ -35,6 +35,10 @@ > > #include >

Re: [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-03-30 Thread Jan Beulich
On 30.03.2022 11:36, Penny Zheng wrote: > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@ -35,6 +35,10 @@ > #include > #endif > > +#ifndef is_domain_on_static_allocation > +#define is_domain_on_static_allocation(d) 0 Nit: "false", not "0". > @@ -405,13 +409,29 @@ int guest_remove_

[PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation

2022-03-30 Thread Penny Zheng
Today when a domain unpopulates the memory on runtime, they will always hand the memory over to the heap allocator. And it will be a problem if domain on static allocation. Guest RAM for domain on static allocation is static memory, which is reserved to only this domain, so it shall never go back