Hi, Sorry for the late reply.
On 06/01/2022 16:30, Oleksandr wrote:So I agree with Jan that the name should be adjusted if it stays where it is.
That said, I would actually prefer the adjustment in alloc_heap_pages(). It is one less assignment per page and I don't expect any issue with setting the bits to INVALID_GFN everywhere in the future on Arm.
Note that you would also need to update acquire_staticmem_pages(). Cheers, -- Julien Grall