[PATCH v2 17/20] KVM: selftests: Take the memory region type, not memslot, in page allocators

Ritesh Harjani (IBM) ritesh.list at gmail.com
Thu Sep 10 04:40:56 PDT 2026


Sean Christopherson <seanjc at google.com> writes:

> Take the memory region type instead of the memslot in all page allocator
> APIs, except for the innermost quad-underscores function.  This will allow
> automatically selecting the minimum GPA based on the allocation type, which
> can't be done using the memslot due to all regions sharing a single memslot
> by default.  PowerPC support will also leverage the type to ensure that
> page table allocations are naturally aligned.
>

yup, PowerPC can leverage this.

> No functional change intended.
>

Sure, even though the callers are changed to pass type instead of slot,
the inner page allocator is moved to pass vm->memslots[type] to
____vm_phy_pages_alloc(). So no functional change.

LGTM.
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>




More information about the linux-arm-kernel mailing list