[PATCH v2 1/3] arm64: mm: Fix rodata=full block mapping support for realm guests
Kevin Brodsky
kevin.brodsky at arm.com
Mon Apr 13 04:47:59 PDT 2026
On 30/03/2026 18:17, Ryan Roberts wrote:
> +bool page_alloc_available __ro_after_init;
> +
> +void __init mem_init(void)
> +{
> + page_alloc_available = true;
I knew I had seen a simpler solution to this: vmemmap_alloc_block() uses
slab_is_available() to tell whether the buddy allocator is available.
AFAICT this becomes true somewhere in kmem_cache_init(), which is called
just after mem_init(). Probably good enough for our purpose?
- Kevin
> + swiotlb_update_mem_attributes();
> +}
More information about the linux-arm-kernel
mailing list