|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm: skip holes in physical address space when setting up frametable
Hi Michal, On 17/04/2026 10:11, Michal Orzel wrote: Refactor setup_frametable_mappings() into init_frametable(), modeled after x86's implementation. Instead of mapping one contiguous frametable covering ram_start to ram_end (including holes), iterate the pdx_group_valid bitmap to allocate and map frametable memory only for valid PDX groups, skipping gaps in the physical address space. At the moment we don't really take into account pdx_group_valid bitmap. This reduces memory consumption on systems with sparse RAM layouts by not allocating frametable entries for non-existent memory regions. A file-local pdx_to_page() override is needed because the generic macro in xen/include/xen/pdx.h does not account for ARM's non-zero frametable_base_pdx. Can you provide a bit more details? I am a bit concerned that this could result to subttle bug in the future if code within mm.c is expecting the original behavior. It would be preferable if the change is either for everyone on Arm or the function is renamed to avoid any clash. [...]
The function will do a round-up the mapping to either a 2MiB or 32MiB aligned size. This means we could potentially cover the previous mapped region or the next one. I can't seem to find any code to cover this use-case. What did I miss? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |