[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/20] qtest/meson.build: check CONFIG_TCG for boot-serial-test in
From: |
Cédric Le Goater |
Subject: |
[PULL 02/20] qtest/meson.build: check CONFIG_TCG for boot-serial-test in qtests_ppc |
Date: |
Tue, 15 Mar 2022 07:37:18 +0100 |
From: Daniel Henrique Barboza <danielhb413@gmail.com>
'boot-serial-test' does not work with a QEMU built with --disable-tcg in
a IBM POWER9 host. The reason is that without TCG QEMU will default to
KVM acceleration, but then the KVM module in IBM POWER hosts aren't able
to handle other CPUs.
The result is that the test will break with a KVM error when trying to
ruin the ppce500 test:
$ QTEST_QEMU_BINARY=./qemu-system-ppc64 ./tests/qtest/boot-serial-test
/ppc64/boot-serial/ppce500: qemu-system-ppc64: -accel tcg: invalid accelerator
tcg
error: kvm run failed Invalid argument
NIP 0000000000f00000 LR 0000000000000000 CTR 0000000000000000 XER
0000000000000000 CPU#0
MSR 0000000000000000 HID0 0000000000000000 HF 24020002 iidx 1 didx 1
TB 00000000 00000000 DECR 0
(...)
** (./tests/qtest/boot-serial-test:1935760): ERROR **: 07:44:03.010: Failed to
find expected string. Please check '/tmp/qtest-boot-serial-sJ78sqg'
Fix it by checking CONFIG_TCG before compiling boot-serial-test.
Cc: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220303153517.168943-3-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
tests/qtest/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 7b74d3116a9c..d25f82bb5ac0 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -161,7 +161,8 @@ qtests_ppc = \
(config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] :
[]) + \
(config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) +
\
(config_all_devices.has_key('CONFIG_TCG') ? ['prom-env-test'] : []) +
\
- ['boot-order-test', 'boot-serial-test']
+ (config_all_devices.has_key('CONFIG_TCG') ? ['boot-serial-test'] : []) +
\
+ ['boot-order-test']
qtests_ppc64 = \
qtests_ppc + \
--
2.34.1
- [PULL 09/20] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep(), (continued)
- [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, 2022/03/15
- [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 <=
- [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, 2022/03/15
- [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