From 137d6e249d9625ed9b58d6c8fea011901b413438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 11 Sep 2025 22:27:42 +0100 Subject: [PATCH] package/kvm-unit-tests: assume AArch64 supports KVM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Signed-off-by: Thomas Petazzoni --- package/kvm-unit-tests/Config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/kvm-unit-tests/Config.in b/package/kvm-unit-tests/Config.in index 0d66a08dd7..817d3c4a8f 100644 --- a/package/kvm-unit-tests/Config.in +++ b/package/kvm-unit-tests/Config.in @@ -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