[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] avocado/boot_linux_console.py: check TCG accel in test_ppc_m
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 2/9] avocado/boot_linux_console.py: check TCG accel in test_ppc_mac99() |
Date: |
Thu, 10 Mar 2022 15:30:04 -0300 |
This test breaks when run in an IBM POWER host with a QEMU compiled
with --disable-tcg and the ppc-softmmu target in a similar manner as
test_ppc_g3beige did.
There's also an observation made about kvm_pr in the error message:
Command: ./qemu-system-ppc -display none -vga none (...)
-machine mac99 (...)
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
This means that, when/if we're able to detect kvm_pr support in these
avocado tests, we can revisit this test to not rely solely on TCG
availability.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
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 2f8d8e2fe6..b40a3abc81 100644
--- a/tests/avocado/boot_linux_console.py
+++ b/tests/avocado/boot_linux_console.py
@@ -1228,7 +1228,13 @@ def test_ppc_mac99(self):
"""
:avocado: tags=arch:ppc
:avocado: tags=machine:mac99
+ :avocado: tags=accel:tcg
"""
+ # TODO: mac99 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.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 <=
- [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, 2022/03/10
- [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