RE: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Penny Zheng
ew Cooper > ; George Dunlap ; > Jan Beulich ; Wei Liu > Subject: RE: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is > static > > On Wed, 27 Apr 2022, Penny Zheng wrote: > > > Hi Penny, > > > > > > On 27/04/2022 11:19, Penny Zheng wrote: >

RE: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Stefano Stabellini
On Wed, 27 Apr 2022, Penny Zheng wrote: > > Hi Penny, > > > > On 27/04/2022 11:19, Penny Zheng wrote: > > >>> +/* > > >>> + * Put free pages on the resv page list after having taken them > > >>> + * off the "normal" page list, when pages from static memory */ > > >>> +#ifdef CONFIG_STATIC_MEMORY

RE: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Penny Zheng
orge Dunlap ; > Jan Beulich ; Wei Liu > Subject: Re: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is > static > > Hi Penny, > > On 27/04/2022 11:19, Penny Zheng wrote: > >>> +/* > >>> + * Put free pages on the resv page list after having

Re: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Julien Grall
Hi Penny, On 27/04/2022 11:19, Penny Zheng wrote: +/* + * Put free pages on the resv page list after having taken them + * off the "normal" page list, when pages from static memory */ +#ifdef CONFIG_STATIC_MEMORY +#define arch_free_heap_page(d, pg) ({ \ +page_list_del(pg,

RE: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Penny Zheng
orge Dunlap ; > Jan Beulich ; Wei Liu > Subject: Re: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is > static > > Hi Penny, > > On 27/04/2022 10:27, Penny Zheng wrote: > > Today when a domain unpopulates the memory on runtime, they will > > always

Re: [PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Julien Grall
Hi Penny, On 27/04/2022 10:27, Penny Zheng wrote: Today when a domain unpopulates the memory on runtime, they will always hand the memory back to the heap allocator. And it will be a problem if domain is static. Pages as guest RAM for static domain shall be reserved to only this domain and not

[PATCH v3 5/6] xen/arm: unpopulate memory when domain is static

2022-04-27 Thread Penny Zheng
Today when a domain unpopulates the memory on runtime, they will always hand the memory back to the heap allocator. And it will be a problem if domain is static. Pages as guest RAM for static domain shall be reserved to only this domain and not be used for any other purposes, so they shall never g