selftests/bpf: Support ppc64el in vmtest
authorLuis Gerhorst <luis.gerhorst@fau.de>
Thu, 19 Jun 2025 14:08:53 +0000 (16:08 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 23 Jun 2025 16:34:58 +0000 (09:34 -0700)
commit3ce7cdde66e65a400b2d1b2a7f72c499e1db26b6
tree321c075f3c54f092631f95236e83efa38eaf4191
parentc11f34e30088b25b7e240e12566fcf28f7ad07cc
selftests/bpf: Support ppc64el in vmtest

With a rootfs built using libbpf's BPF CI [1], we can run specific tests
as follows:

$ ../libbpf-ci/rootfs/mkrootfs_debian.sh --arch ppc64el --distro noble
$ PLATFORM=ppc64el CROSS_COMPILE=powerpc64le-linux-gnu- \
    tools/testing/selftests/bpf/vmtest.sh \
    -l libbpf-vmtest-rootfs-*-noble-ppc64el.tar.zst \
    -- ./test_progs -t verifier_array_access

Does not include a DENYLIST or support for KVM for now.

[1] https://github.com/libbpf/ci

Signed-off-by: Luis Gerhorst <luis.gerhorst@fau.de>
Link: https://lore.kernel.org/r/20250619140854.2135283-1-luis.gerhorst@fau.de
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/config.ppc64el [new file with mode: 0644]
tools/testing/selftests/bpf/vmtest.sh