@samitouri / QOSamiQemu / commits / b92d8459ec

tests/functional/test_kvm.py: Use -cpu max, not cortex-a72

The test_kvm test claims to run on any accelerator supporting nested virtualization, but it specifies the cortex-a72 CPU. This doesn't exist for KVM-only builds. Use max instead. This fixes a failure like Output: qemu-system-aarch64: unable to find CPU model 'cortex-a72' Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260507194728.2034696-4-peter.maydell@linaro.org

Peter Maydell committed May 7, 2026 at 20:47 UTC b92d8459ece67f068e67d9bd37356de6b8768376
1 file changed +1 -1
tests/functional/aarch64/test_kvm.py
+1 -1
@@ -38,7 +38,7 @@ class Aarch64VirtKVMTests(LinuxKernelTest):
38 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
39 f"console=ttyAMA0 kvm-arm.mode={kvm_mode}")
40
41 - self.vm.add_args("-cpu", "cortex-a72")
41 + self.vm.add_args("-cpu", "max")
42 self.vm.add_args("-machine", "virt,gic-version=3,virtualization=on",
43 '-kernel', kernel_path,
44 '-append', kernel_command_line)