Re: [PATCH v3 2/6] KVM: s390: Add alignment checks for hugepages

From: Steffen Eiden

Date: Tue Apr 07 2026 - 08:35:44 EST


On Thu, Apr 02, 2026 at 05:01:31PM +0200, Claudio Imbrenda wrote:
> When backing a guest page with a large page, check that the alignment
> of the guest page matches the alignment of the host physical page
> backing it within the large page.
>
> Also check that the memslot is large enough to fit the large page.
>
> Those checks are currently not needed, because memslots are guaranteed
> to be 1m-aligned, but this will change.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>

Reviewed-by: Steffen Eiden <seiden@xxxxxxxxxxxxx>