diff options
| author | Like Xu <like.xu.linux@gmail.com> | 2026-08-18 19:29:19 +0800 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-09-14 13:01:08 +0100 |
| commit | 2665ac1063e71f23888091a0bdb1b96297bd0370 (patch) | |
| tree | 711ddd4dc5761a6f92068700770b4b81d93c4b4e /tools/perf/scripts/python | |
| parent | 05fd5844cc83c1a51b0a38113a7ee196a69bda1d (diff) | |
KVM: arm64: selftests: Skip sea_to_user without 1GB hugepages
sea_to_user backs guest memory with 1GB hugepages but never checks that
any are reserved. On a host with an empty pool it aborts instead of
skipping:
kvm_syscalls.h:68: mem != MAP_FAILED, errno=12 (ENOMEM)
not ok 1 selftests: kvm: sea_to_user # exit=254
The mmap() of the hugetlb region fails with -ENOMEM because no 1GB pages
are available, and the test treats that as a hard failure even though it
simply cannot run without the backing pages. Check the free 1GB hugepage
count up front and skip cleanly when the host cannot satisfy the region.
Signed-off-by: Like Xu <likexu@tencent.com>
Reviewed-by: Jiaqi Yan <jiaqiyan@google.com>
Link: https://patch.msgid.link/20260818112920.26252-3-likexu@tencent.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
