From: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
To: Cleber Rosa <crosa@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Peter Maydell <peter.maydell@linaro.org>,
QEMU devel <qemu-devel@nongnu.org>
Subject: Re: Regression caught by replay_kernel.py:ReplayKernelNormal.test_aarch64_virt
Date: Tue, 27 Jul 2021 08:57:33 +0300 [thread overview]
Message-ID: <02e3fbd8-3389-f90c-14ef-6da47018af7d@ispras.ru> (raw)
In-Reply-To: <87pmv4zj22.fsf@p50.localhost.localdomain>
On 27.07.2021 03:39, Cleber Rosa wrote:
>
> Hi everyone,
>
> tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt
> is currently failing consistently (first found that in [1]).
>
> I've bisected it down to the following commit:
Thanks for bisecting.
I didn't try to understand why the bug happens, but it can be solved
with the following patch:
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -1428,7 +1428,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
max_insns = cflags & CF_COUNT_MASK;
if (max_insns == 0) {
- max_insns = TCG_MAX_INSNS;
+ max_insns = CF_COUNT_MASK;
}
QEMU_BUILD_BUG_ON(CF_COUNT_MASK + 1 != TCG_MAX_INSNS);
>
> ---
>
> 78ff82bb1b67c0d79113688e4b3427fc99cab9d4 is the first bad commit
> commit 78ff82bb1b67c0d79113688e4b3427fc99cab9d4
> Author: Richard Henderson <richard.henderson@linaro.org>
>
> accel/tcg: Reduce CF_COUNT_MASK to match TCG_MAX_INSNS
>
> The space reserved for CF_COUNT_MASK was overly large.
> Reduce to free up cflags bits and eliminate an extra test.
>
> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> Message-Id: <20210717221851.2124573-2-richard.henderson@linaro.org>
>
> accel/tcg/translate-all.c | 5 ++---
> include/exec/exec-all.h | 4 +++-
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> ---
>
> To reproduce it:
>
> 1. configure --target-list=aarch64-softmmu
> 2. meson compile
> 3. make check-venv
> 4. ./tests/venv/bin/avocado --show=test run tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt
>
> PS: I haven't had the time yet to scan the mailing list for possible
> discussions about it.
>
> [1] https://gitlab.com/qemu-project/qemu/-/jobs/1445513133#L268
>
next prev parent reply other threads:[~2021-07-27 5:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 0:39 Regression caught by replay_kernel.py:ReplayKernelNormal.test_aarch64_virt Cleber Rosa
2021-07-27 5:57 ` Pavel Dovgalyuk [this message]
2021-07-27 7:36 ` Peter Maydell
2021-07-27 13:18 ` Cleber Rosa
2021-07-27 13:46 ` Peter Maydell
2021-07-27 9:16 ` Peter Maydell
2021-07-27 13:23 ` Cleber Rosa
2021-07-27 13:47 ` Peter Maydell
2021-07-27 14:15 ` Cleber Rosa
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=02e3fbd8-3389-f90c-14ef-6da47018af7d@ispras.ru \
--to=pavel.dovgalyuk@ispras.ru \
--cc=crosa@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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).