Re: [PATCH v2 20/20] KVM: selftests: Add arch hook to force page tables to be naturally aligned

From: IBM

Date: Thu Sep 10 2026 - 08:17:16 EST


Sean Christopherson <seanjc@xxxxxxxxxx> writes:

> Add an arch hook to communicate to the core physical page allocator that
> page table allocations need to be naturally aligned. The hook will be used
> for upcoming PowerPC support, which has MMU tables that are larger than the
> guest base page size and need to be naturally aligned.
>

Thanks Sean, for these patches. I have addressed your review comments on
v3 of PPC KVM selftests support and ported those on top of this series.
I am still in the process of running the entire series on a real HW
(and some todos/minor changes to be done).

Will soon post v4 of PPC KVM selftests on top of this change series.

> Bury the hook in the physical page allocator to avoid having to plumb a
> rarely used param into the main APIs.
>
> Cc: Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx>

As for this change. LGTM. Feel free to add:

Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx>