@samitouri / QOSamiQemu / commits / f24fe5258d

tests/functional/test_tuxrun: Restrict to TCG

The tuxrun tests specify the cortex-a57 CPU; this doesn't work on a KVM-only QEMU build, where the default accelerator is KVM but KVM doesn't support that CPU type. Restrict the test to TCG, to avoid failures on KVM-only AArch64 builds: Output: qemu-system-aarch64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument 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-7-peter.maydell@linaro.org

Peter Maydell committed May 7, 2026 at 20:47 UTC f24fe5258d602faebde6e90bb3e0c782d5c48786
1 file changed +2
tests/functional/aarch64/test_tuxrun.py
+2
@@ -25,6 +25,7 @@ class TuxRunAarch64Test(TuxRunBaselineTest):
25
26 def test_arm64(self):
27 self.set_machine('virt')
28 + self.require_accelerator('tcg')
29 self.cpu='cortex-a57'
30 self.console='ttyAMA0'
31 self.wait_for_shutdown=False
@@ -40,6 +41,7 @@ class TuxRunAarch64Test(TuxRunBaselineTest):
41
42 def test_arm64be(self):
43 self.set_machine('virt')
44 + self.require_accelerator('tcg')
45 self.cpu='cortex-a57'
46 self.console='ttyAMA0'
47 self.wait_for_shutdown=False