[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/20] avocado/ppc_74xx.py: check TCG accel for all tests
From: |
Cédric Le Goater |
Subject: |
[PULL 10/20] avocado/ppc_74xx.py: check TCG accel for all tests |
Date: |
Tue, 15 Mar 2022 07:37:26 +0100 |
From: Daniel Henrique Barboza <danielhb413@gmail.com>
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>
Message-Id: <20220310183011.110391-6-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
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 556a9a7da968..f54757c243f1 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.34.1
- [PULL 12/20] avocado/ppc_mpc8544ds.py: check TCG accel in test_ppc_mpc8544ds(), (continued)
- [PULL 12/20] avocado/ppc_mpc8544ds.py: check TCG accel in test_ppc_mpc8544ds(), Cédric Le Goater, 2022/03/15
- [PULL 08/20] avocado/ppc_405.py: remove test_ppc_taihu(), Cédric Le Goater, 2022/03/15
- [PULL 19/20] ppc/pnv: Always create the PHB5 PEC devices, Cédric Le Goater, 2022/03/15
- [PULL 17/20] ppc/xive2: Make type Xive2EndSource not user creatable, Cédric Le Goater, 2022/03/15
- [PULL 13/20] avocado/ppc_prep_40p.py: check TCG accel in all tests, Cédric Le Goater, 2022/03/15
- [PULL 05/20] avocado/replay_kernel.py: make tcg-icount check in run_vm(), Cédric Le Goater, 2022/03/15
- [PULL 02/20] qtest/meson.build: check CONFIG_TCG for boot-serial-test in qtests_ppc, Cédric Le Goater, 2022/03/15
- [PULL 11/20] avocado/ppc_bamboo.py: check TCG accel in test_ppc_bamboo(), Cédric Le Goater, 2022/03/15
- [PULL 20/20] ppc/pnv: Remove user-created PHB{3,4,5} devices, Cédric Le Goater, 2022/03/15
- [PULL 15/20] target/ppc: fix ISI fault cause for Radix MMU, Cédric Le Goater, 2022/03/15
- [PULL 10/20] avocado/ppc_74xx.py: check TCG accel for all tests,
Cédric Le Goater <=
- [PULL 18/20] ppc/pnv: Introduce a pnv-phb5 device to match root port, Cédric Le Goater, 2022/03/15
- [PULL 07/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_mac99(), Cédric Le Goater, 2022/03/15
- [PULL 16/20] target/ppc: fix xxspltw for big endian hosts, Cédric Le Goater, 2022/03/15
- [PULL 04/20] avocado/boot_linux_console.py: check tcg accel in test_ppc64_e500, Cédric Le Goater, 2022/03/15
- Re: [PULL 00/20] ppc fixes for 7.0, Peter Maydell, 2022/03/15