Re: [PATCH v5 7/9] xen/arm: unpopulate memory when domain is static

2022-06-02 Thread Stefano Stabellini
On Tue, 31 May 2022, 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 b

Re: [PATCH v5 7/9] xen/arm: unpopulate memory when domain is static

2022-05-31 Thread Jan Beulich
On 31.05.2022 05:12, Penny Zheng wrote: > --- a/xen/include/xen/sched.h > +++ b/xen/include/xen/sched.h > @@ -381,6 +381,9 @@ struct domain > struct page_list_head page_list; /* linked list */ > struct page_list_head extra_page_list; /* linked list (size extra_pages) > */ > struct

[PATCH v5 7/9] xen/arm: unpopulate memory when domain is static

2022-05-30 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