]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: selftests: use maximum cpu features and allow rng seeding
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 10 Jun 2022 14:32:02 +0000 (16:32 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 11 Jun 2022 13:38:08 +0000 (15:38 +0200)
commit32f1dd144ce873f323600cf5bb10d09afc1bd950
tree6dca5a504925f5ce84fe4e6d3ea170e3595a0356
parent6224bf1f6541ab4b02f434af74b5df242e0f2ac7
wireguard: selftests: use maximum cpu features and allow rng seeding

By forcing the maximum CPU that QEMU has available, we expose additional
capabilities, such as the RNDR instruction, which increases test
coverage. This then allows the CI to skip the fake seeding step in some
cases. Also enable STRICT_KERNEL_RWX to catch issues related to early
jump labels when the RNG is initialized at boot.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tools/testing/selftests/wireguard/qemu/Makefile
tools/testing/selftests/wireguard/qemu/init.c
tools/testing/selftests/wireguard/qemu/kernel.config