RE: [PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-05-04 Thread Penny Zheng
ubject: Re: [PATCH v3 2/6] xen: do not merge reserved pages in > free_heap_pages() > > On 27.04.2022 11:27, Penny Zheng wrote: > > There is a slim chance that free_heap_pages() may decide to merge a > > chunk from the static region(PGC_reserved) with the about-to-be-free >

Re: [PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-05-04 Thread Jan Beulich
On 27.04.2022 11:27, Penny Zheng wrote: > There is a slim chance that free_heap_pages() may decide to merge a chunk > from the static region(PGC_reserved) with the about-to-be-free chunk. > > So in order to avoid the above scenario, this commit updates free_heap_pages() > to check whether the pred

Re: [PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-04-27 Thread Julien Grall
Hi, On 27/04/2022 10:27, Penny Zheng wrote: There is a slim chance that free_heap_pages() may decide to merge a chunk from the static region(PGC_reserved) with the about-to-be-free chunk. This sentence tells me that the merge can happen but it doesn't tell me the cases. I think the second part

[PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-04-27 Thread Penny Zheng
There is a slim chance that free_heap_pages() may decide to merge a chunk from the static region(PGC_reserved) with the about-to-be-free chunk. So in order to avoid the above scenario, this commit updates free_heap_pages() to check whether the predecessor and/or successor has PGC_reserved set, whe