Re: [PATCH 6/6] tests/functional/test_tuxrun: Restrict to TCG

2026-05-08 Thread Richard Henderson

On 5/7/26 14:47, Peter Maydell wrote:

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 
---
  tests/functional/aarch64/test_tuxrun.py | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/tests/functional/aarch64/test_tuxrun.py 
b/tests/functional/aarch64/test_tuxrun.py
index 75adc8acb8..7dd50c3de1 100755
--- a/tests/functional/aarch64/test_tuxrun.py
+++ b/tests/functional/aarch64/test_tuxrun.py
@@ -25,6 +25,7 @@ class TuxRunAarch64Test(TuxRunBaselineTest):
  
  def test_arm64(self):

  self.set_machine('virt')
+self.require_accelerator('tcg')
  self.cpu='cortex-a57'
  self.console='ttyAMA0'
  self.wait_for_shutdown=False
@@ -40,6 +41,7 @@ def test_arm64(self):
  
  def test_arm64be(self):

  self.set_machine('virt')
+self.require_accelerator('tcg')
  self.cpu='cortex-a57'
  self.console='ttyAMA0'
  self.wait_for_shutdown=False


Reviewed-by: Richard Henderson 

r~



Re: [PATCH 6/6] tests/functional/test_tuxrun: Restrict to TCG

2026-05-08 Thread Philippe Mathieu-Daudé

On 7/5/26 21:47, Peter Maydell wrote:

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 
---
  tests/functional/aarch64/test_tuxrun.py | 2 ++
  1 file changed, 2 insertions(+)


Reviewed-by: Philippe Mathieu-Daudé