From: "Cédric Le Goater" <clg@kaod.org>
To: Daniel Henrique Barboza <danielhb413@gmail.com>, <qemu-devel@nongnu.org>
Cc: thuth@redhat.com, crosa@redhat.com, qemu-ppc@nongnu.org,
Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>,
david@gibson.dropbear.id.au
Subject: Re: [PATCH 5/5] avocado/replay_kernel.py: make tcg-icount check in run_vm()
Date: Mon, 7 Mar 2022 09:47:18 +0100 [thread overview]
Message-ID: <04d9a7d9-13c7-ee86-96c1-90bf8cf9173f@kaod.org> (raw)
In-Reply-To: <20220303153517.168943-6-danielhb413@gmail.com>
On 3/3/22 16:35, Daniel Henrique Barboza wrote:
> The icount framework relies on TCG availability. If QEMU is built with
> --disable-tcg we won't have icount either, and then this test will fail
> with the following message in an IBM POWER9 host:
>
> tests/avocado/replay_kernel.py:ReplayKernelNormal.test_ppc64_pseries:
> ERROR: ConnectError: Failed to establish session:
> (...)
> /11-tests_avocado_replay_kernel.py_ReplayKernelNormal.test_ppc64_pseries/replay.bin:
> cannot configure icount, TCG support not available
>
> Although this was revealed in a specific ppc64 scenario, the TCG check
> is being done in the common code inside run_vm() because all archs need
> TCG to have access to icount.
>
> Cc: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Pavel,
Should I take this patch through the ppc tree ?
Thanks,
C.
> ---
> tests/avocado/replay_kernel.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
> index c68a953730..0b2b0dc692 100644
> --- a/tests/avocado/replay_kernel.py
> +++ b/tests/avocado/replay_kernel.py
> @@ -36,6 +36,9 @@ class ReplayKernelBase(LinuxKernelTest):
>
> def run_vm(self, kernel_path, kernel_command_line, console_pattern,
> record, shift, args, replay_path):
> + # icount requires TCG to be available
> + self.require_accelerator('tcg')
> +
> logger = logging.getLogger('replay')
> start_time = time.time()
> vm = self.get_vm()
> @@ -243,6 +246,7 @@ def test_ppc64_pseries(self):
> """
> :avocado: tags=arch:ppc64
> :avocado: tags=machine:pseries
> + :avocado: tags=accel:tcg
> """
> kernel_url = ('https://archives.fedoraproject.org/pub/archive'
> '/fedora-secondary/releases/29/Everything/ppc64le/os'
next prev parent reply other threads:[~2022-03-07 8:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=04d9a7d9-13c7-ee86-96c1-90bf8cf9173f@kaod.org \
--to=clg@kaod.org \
--cc=crosa@redhat.com \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=pavel.dovgaluk@ispras.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).