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

From: Marc Zyngier

Date: Mon Aug 17 2026 - 04:54:08 EST


+ 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.

M.

[1] https://lore.kernel.org/all/86y0le9cvz.wl-maz@xxxxxxxxxx/

--
Without deviation from the norm, progress is not possible.