From: Richard Henderson <richard.henderson@linaro.org>
To: Ilya Leoshkevich <iii@linux.ibm.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v4] tests/tcg/x86_64: Add cross-modifying code test
Date: Thu, 3 Oct 2024 12:56:28 -0700 [thread overview]
Message-ID: <ac79fcea-b1b7-4396-8f82-eaa3ba78b455@linaro.org> (raw)
In-Reply-To: <20241001150617.9977-1-iii@linux.ibm.com>
On 10/1/24 08:03, Ilya Leoshkevich wrote:
> commit f025692c992c ("accel/tcg: Clear PAGE_WRITE before translation")
> fixed cross-modifying code handling, but did not add a test. The
> changed code was further improved recently [1], and I was not sure
> whether these modifications were safe (spoiler: they were fine).
>
> Add a test to make sure there are no regressions.
>
> [1]https://lists.gnu.org/archive/html/qemu-devel/2022-09/msg00034.html
>
> Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com>
> ---
>
> v3:https://lore.kernel.org/qemu-devel/20230316214711.318339-1-iii@linux.ibm.com/
> v3 -> v4: Rebase.
> I've been looking into the .NET failures under QEMU again and
> what this test looks for was a suspect. It turned out to be
> https://gitlab.com/qemu-project/qemu/-/issues/2600
> but it would be good to have this test upstream to ensure
> there are no regressions.
>
> v2:https://patchew.org/QEMU/20220905154944.1284289-1-iii@linux.ibm.com/
> v2 -> v3: Resend with a trivial rebase.
>
> v1:https://lists.gnu.org/archive/html/qemu-devel/2022-09/msg00455.html
> v1 -> v2: Fix tweaking the flags (Alex).
> Keep the custom build rule for now.
>
> tests/tcg/x86_64/Makefile.target | 4 ++
> tests/tcg/x86_64/cross-modifying-code.c | 80 +++++++++++++++++++++++++
> 2 files changed, 84 insertions(+)
> create mode 100644 tests/tcg/x86_64/cross-modifying-code.c
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2024-10-03 19:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 15:03 [PATCH v4] tests/tcg/x86_64: Add cross-modifying code test Ilya Leoshkevich
2024-10-03 19:56 ` Richard Henderson [this message]
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=ac79fcea-b1b7-4396-8f82-eaa3ba78b455@linaro.org \
--to=richard.henderson@linaro.org \
--cc=eduardo@habkost.net \
--cc=iii@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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).