[PATCH v2] xen/page_alloc: Remove dead code in alloc_domheap_pages()

2021-05-26 Thread Julien Grall
From: Julien Grall Since commit 1aac966e24e9 "xen: support RAM at addresses 0 and 4096", bits_to_zone() will never return 0 and it is expected that we have minimum 2 zones. Therefore the check in alloc_domheap_pages() is unnecessary and can be removed. However, for sanity, it is replaced with an

Re: [PATCH v2] xen/page_alloc: Remove dead code in alloc_domheap_pages()

2021-05-27 Thread Jan Beulich
On 26.05.2021 18:11, Julien Grall wrote: > From: Julien Grall > > Since commit 1aac966e24e9 "xen: support RAM at addresses 0 and 4096", > bits_to_zone() will never return 0 and it is expected that we have > minimum 2 zones. > > Therefore the check in alloc_domheap_pages() is unnecessary and can

Re: [PATCH v2] xen/page_alloc: Remove dead code in alloc_domheap_pages()

2021-06-01 Thread Julien Grall
Hi Jan, On 27/05/2021 08:15, Jan Beulich wrote: On 26.05.2021 18:11, Julien Grall wrote: From: Julien Grall Since commit 1aac966e24e9 "xen: support RAM at addresses 0 and 4096", bits_to_zone() will never return 0 and it is expected that we have minimum 2 zones. Therefore the check in alloc_d