package/kvm-unit-tests: assume AArch64 supports KVM

Although it is possible to configure an AArch64 CPU without support
for EL2 in practice all the common AArch64 have supported
virtualisation from the start.

If we really wanted to be strict we could blacklist known non-EL2 CPUs
but AFAICT all the current ones in the config have EL2.

I should also note KVM on Arm is deprecated and was removed from the
kernel in v6.10.

Reviewed-by: Jesse Taube <jesse@rivosinc.com>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Alex Bennée
2025-09-11 22:27:42 +01:00
committed by Thomas Petazzoni
parent e4e71c6c83
commit 137d6e249d

View File

@@ -1,13 +1,13 @@
config BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS
bool
# On ARM, it needs virtualization extensions and little endian CPUs
default y if (BR2_arm || BR2_aarch64) && \
default y if BR2_arm && \
(BR2_cortex_a7 || BR2_cortex_a12 || \
BR2_cortex_a15 || BR2_cortex_a15_a7 || \
BR2_cortex_a17 || BR2_cortex_a17_a7 || \
BR2_cortex_a55 || BR2_cortex_a75 || \
BR2_cortex_a75_a55 || BR2_cortex_a76 || \
BR2_cortex_a76_a55)
BR2_cortex_a76 || BR2_cortex_a76_a55)
# For AArch64 we can assume all v8.0+ support virtualization
default y if BR2_aarch64
default y if BR2_riscv
default y if BR2_i386 || BR2_x86_64
default y if BR2_powerpc64 || BR2_powerpc64le