qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] --disable-tcg qtest/avocado fixes for ppc64
@ 2022-03-03 15:35 Daniel Henrique Barboza
  2022-03-03 15:35 ` [PATCH 1/5] qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc Daniel Henrique Barboza
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Daniel Henrique Barboza @ 2022-03-03 15:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: thuth, Daniel Henrique Barboza, qemu-ppc, clg, crosa, david

Hi,

'make check' and 'make check-avocado' in a ppc64 host, using a QEMU
built with --disable-tcg, fails in a handful of tests/files due to the
lack of TCG support not being accounted for. The tests usually fall back
to KVM acceleration, and when running in an IBM POWER server this accel
type isn't able to run any other machine but 'pseries'. 

This series aims to fix it by checking for CONFIG_TCG in
qtest/meson.build, and using require_accelerator('tcg') in avocado
tests. I avoided changing the behavior when running the tests in other
host architectures because I can't assert about how KVM behaves in x86 and
aarch64. Patches 1, 2 and 4 were limited to ppc/ppc64 tests only because
of that.

Patch 5 is something that I am fairly confident that affects all archs
so the change is made in the common code for everyone.


Daniel Henrique Barboza (5):
  qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc
  qtest/meson.build: check CONFIG_TCG for boot-serial-test in qtests_ppc
  avocado/boot_linux_console.py: check for tcg in test_ppc_powernv8/9
  avocado/boot_linux_console.py: check tcg accel in test_ppc64_e500
  avocado/replay_kernel.py: make tcg-icount check in run_vm()

 tests/avocado/boot_linux_console.py | 5 +++++
 tests/avocado/replay_kernel.py      | 4 ++++
 tests/qtest/meson.build             | 4 +++-
 3 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.35.1



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-03-14 15:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-03 15:35 [PATCH 0/5] --disable-tcg qtest/avocado fixes for ppc64 Daniel Henrique Barboza
2022-03-03 15:35 ` [PATCH 1/5] qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc Daniel Henrique Barboza
2022-03-07  7:57   ` Thomas Huth
2022-03-03 15:35 ` [PATCH 2/5] qtest/meson.build: check CONFIG_TCG for boot-serial-test " Daniel Henrique Barboza
2022-03-07  8:00   ` Thomas Huth
2022-03-03 15:35 ` [PATCH 3/5] avocado/boot_linux_console.py: check for tcg in test_ppc_powernv8/9 Daniel Henrique Barboza
2022-03-03 16:08   ` Cédric Le Goater
2022-03-04 12:23   ` Philippe Mathieu-Daudé
2022-03-03 15:35 ` [PATCH 4/5] avocado/boot_linux_console.py: check tcg accel in test_ppc64_e500 Daniel Henrique Barboza
2022-03-03 16:08   ` Cédric Le Goater
2022-03-03 15:35 ` [PATCH 5/5] avocado/replay_kernel.py: make tcg-icount check in run_vm() Daniel Henrique Barboza
2022-03-07  8:47   ` Cédric Le Goater
2022-03-09  4:59     ` Pavel Dovgalyuk
2022-03-09  8:21       ` Cédric Le Goater
2022-03-14 15:22 ` [PATCH 0/5] --disable-tcg qtest/avocado fixes for ppc64 Cédric Le Goater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).