[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/9] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep()
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 4/9] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep() |
Date: |
Thu, 10 Mar 2022 15:30:06 -0300 |
Running this test without TCG support in an IBM POWER server results
in the following error:
Command: ./qemu-system-ppc -display none -vga none (...)
-machine ref405ep (...)
Output: qemu-system-ppc: Register sync failed... If you're using
kvm-hv.ko, only "-cpu host" is possible
qemu-system-ppc: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument
Although the host is running kvm_hv we don't have a way of differentiate
between kvm_hv and kvm_pr, meaning that this test would've failed in the
same way if kvm_pr was the KVM module loaded in the host.
Since we don't have a way of checking which KVM module is being loaded
when using avocado, make a TCG accel check in test_ppc_ref405ep().
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
tests/avocado/ppc_405.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/avocado/ppc_405.py b/tests/avocado/ppc_405.py
index a69b7c5e97..4e7e01aa76 100644
--- a/tests/avocado/ppc_405.py
+++ b/tests/avocado/ppc_405.py
@@ -30,5 +30,7 @@ def test_ppc_ref405ep(self):
:avocado: tags=arch:ppc
:avocado: tags=machine:ref405ep
:avocado: tags=cpu:405ep
+ :avocado: tags=accel:tcg
"""
+ self.require_accelerator("tcg")
self.do_test_ppc405()
--
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 <=
- [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