Re: [PATCH] KVM: selftests: arm64: Skip sea_to_user without 1GB hugepages

From: Jiaqi Yan

Date: Tue Aug 18 2026 - 13:56:06 EST


On Mon, Aug 17, 2026 at 1:53 AM Marc Zyngier <maz@xxxxxxxxxx> wrote:
>
> + Jiaqi.
>
> On Mon, 17 Aug 2026 09:07:59 +0100,
> Like Xu <like.xu.linux@xxxxxxxxx> wrote:
> >
> > sea_to_user backs guest memory with 1GB hugepages but never checks any
> > are reserved, aborting instead of skipping when the host has none:
> >
> > kvm_syscalls.h:68: mem != MAP_FAILED, errno=12 (ENOMEM)
> > not ok 1 selftests: kvm: sea_to_user # exit=254
> >
> > Check for enough free hugepages up front so the test skips cleanly.
>
> See my comments at [1].
>
> This test is totally borked, and Jiaqi stopped replying. It is a
> liability, and I'd like it *removed*. But if you want to fix it,
> please go ahead.

Sorry the test was written in a way that is highly customized to my
testing environment, and I have been occupied with many other
work-related tasks.

Like, I can help review the patches for the test during this weekend,
if that's not too late for you.

>
> M.
>
> [1] https://lore.kernel.org/all/86y0le9cvz.wl-maz@xxxxxxxxxx/
>
> --
> Without deviation from the norm, progress is not possible.