[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_
From: |
Cédric Le Goater |
Subject: |
[PULL 06/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_g3beige() |
Date: |
Tue, 15 Mar 2022 07:37:22 +0100 |
From: Daniel Henrique Barboza <danielhb413@gmail.com>
This test breaks when run in an IBM POWER host with a QEMU compiled
with --disable-tcg and the ppc-softmmu target.
One thing to note is that the error message explictly mentions kvm_pr
support:
Command: ./qemu-system-ppc -display none -vga none (...)
-machine g3beige (...)
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
The host was running kvm_hv, not kvm_pr, and the machine failed to load.
Unfortunately we don't have a way to detect whether the KVM module loaded
is kvm_hv or kvm_pr - we do a check for /dev/kvm to detect KVM support but
both modules create this file so that's not helpful.
Let's skip this test for now until we have a way of detecting kvm_pr support in
the host.
Reported-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220310183011.110391-2-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
tests/avocado/boot_linux_console.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/avocado/boot_linux_console.py
b/tests/avocado/boot_linux_console.py
index 6d6e748572f2..2f8d8e2fe6aa 100644
--- a/tests/avocado/boot_linux_console.py
+++ b/tests/avocado/boot_linux_console.py
@@ -1213,7 +1213,13 @@ def test_ppc_g3beige(self):
"""
:avocado: tags=arch:ppc
:avocado: tags=machine:g3beige
+ :avocado: tags=accel:tcg
"""
+ # TODO: g3beige works with kvm_pr but we don't have a
+ # reliable way ATM (e.g. looking at /proc/modules) to detect
+ # whether we're running kvm_hv or kvm_pr. For now let's
+ # disable this test if we don't have TCG support.
+ self.require_accelerator("tcg")
tar_hash = 'e0b872a5eb8fdc5bed19bd43ffe863900ebcedfc'
self.vm.add_args('-M', 'graphics=off')
self.do_test_advcal_2018('15', tar_hash, 'invaders.elf')
--
2.34.1
- [PULL 00/20] ppc fixes for 7.0, Cédric Le Goater, 2022/03/15
- [PULL 01/20] qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc, Cédric Le Goater, 2022/03/15
- [PULL 09/20] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep(), Cédric Le Goater, 2022/03/15
- [PULL 06/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_g3beige(),
Cédric Le Goater <=
- [PULL 03/20] avocado/boot_linux_console.py: check for tcg in test_ppc_powernv8/9, Cédric Le Goater, 2022/03/15
- [PULL 14/20] avocado/ppc_virtex_ml507.py: check TCG accel in test_ppc_virtex_ml507(), Cédric Le Goater, 2022/03/15
- [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