[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] avocado/ppc_74xx.py: check TCG accel for all tests
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 5/9] avocado/ppc_74xx.py: check TCG accel for all tests |
Date: |
Thu, 10 Mar 2022 15:30:07 -0300 |
All tests of this file, when running in an IBM POWER host and with
--disable-tcg, fail in a similar manner:
Command: ./qemu-system-ppc -display none -vga none (...)
-cpu 7400 (...)
Output: ioctl(KVM_CREATE_VM) failed: 22 Invalid argument
PPC KVM module is not loaded. Try modprobe kvm_pr.
qemu-system-ppc: failed to initialize kvm: Invalid argument
We don't have a way of telling which KVM module is loaded in a Power
host (kvm_hv or kvm_pr). For now let's make all the tests of this
file depend on TCG support.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
tests/avocado/ppc_74xx.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/avocado/ppc_74xx.py b/tests/avocado/ppc_74xx.py
index 556a9a7da9..f54757c243 100644
--- a/tests/avocado/ppc_74xx.py
+++ b/tests/avocado/ppc_74xx.py
@@ -11,6 +11,7 @@
class ppc74xxCpu(QemuSystemTest):
"""
:avocado: tags=arch:ppc
+ :avocado: tags=accel:tcg
"""
timeout = 5
@@ -18,6 +19,7 @@ def test_ppc_7400(self):
"""
:avocado: tags=cpu:7400
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -27,6 +29,7 @@ def test_ppc_7410(self):
"""
:avocado: tags=cpu:7410
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -36,6 +39,7 @@ def test_ppc_7441(self):
"""
:avocado: tags=cpu:7441
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -45,6 +49,7 @@ def test_ppc_7445(self):
"""
:avocado: tags=cpu:7445
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -54,6 +59,7 @@ def test_ppc_7447(self):
"""
:avocado: tags=cpu:7447
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -63,6 +69,7 @@ def test_ppc_7447a(self):
"""
:avocado: tags=cpu:7447a
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -72,6 +79,7 @@ def test_ppc_7448(self):
"""
:avocado: tags=cpu:7448
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -81,6 +89,7 @@ def test_ppc_7450(self):
"""
:avocado: tags=cpu:7450
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -90,6 +99,7 @@ def test_ppc_7451(self):
"""
:avocado: tags=cpu:7451
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -99,6 +109,7 @@ def test_ppc_7455(self):
"""
:avocado: tags=cpu:7455
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -108,6 +119,7 @@ def test_ppc_7457(self):
"""
:avocado: tags=cpu:7457
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
@@ -117,6 +129,7 @@ def test_ppc_7457a(self):
"""
:avocado: tags=cpu:7457a
"""
+ self.require_accelerator("tcg")
self.vm.set_console()
self.vm.launch()
wait_for_console_pattern(self, '>> OpenBIOS')
--
2.35.1
- [PATCH 0/9] --disable-tcg avocado fixes for ppc-softmmu, Daniel Henrique Barboza, 2022/03/10
- [PATCH 1/9] avocado/boot_linux_console.py: check TCG accel in test_ppc_g3beige(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 2/9] avocado/boot_linux_console.py: check TCG accel in test_ppc_mac99(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 3/9] avocado/ppc_405.py: remove test_ppc_taihu(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 4/9] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 5/9] avocado/ppc_74xx.py: check TCG accel for all tests,
Daniel Henrique Barboza <=
- [PATCH 6/9] avocado/ppc_bamboo.py: check TCG accel in test_ppc_bamboo(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 7/9] avocado/ppc_mpc8544ds.py: check TCG accel in test_ppc_mpc8544ds(), Daniel Henrique Barboza, 2022/03/10
- [PATCH 8/9] avocado/ppc_prep_40p.py: check TCG accel in all tests, Daniel Henrique Barboza, 2022/03/10
- [PATCH 9/9] avocado/ppc_virtex_ml507.py: check TCG accel in test_ppc_virtex_ml507(), Daniel Henrique Barboza, 2022/03/10
- Re: [PATCH 0/9] --disable-tcg avocado fixes for ppc-softmmu, Murilo Opsfelder Araújo, 2022/03/10
- Re: [PATCH 0/9] --disable-tcg avocado fixes for ppc-softmmu, Cédric Le Goater, 2022/03/14