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
>>>
>>>> --
> 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
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
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".
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
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
>
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
>
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_
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