From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Richard Henderson <richard.henderson@linaro.org>,
Cornelia Huck <cohuck@redhat.com>,
Eric Farman <farman@linux.ibm.com>,
Matthew Rosato <mjrosato@linux.ibm.com>
Cc: David Hildenbrand <david@kernel.org>,
qemu-s390x@nongnu.org, qemu-devel@nongnu.org,
Harald Freudenberger <freude@linux.ibm.com>,
Ilya Leoshkevich <iii@linux.ibm.com>
Subject: [PATCH v2 0/2] target/s390x: Make PRNO TRNG interruptible
Date: Tue, 14 Jul 2026 21:17:17 +0200 [thread overview]
Message-ID: <20260714191948.342204-1-iii@linux.ibm.com> (raw)
v1: https://lore.kernel.org/qemu-devel/20260714113946.275122-1-iii@linux.ibm.com/
v1 -> v2: Use cpu_loop_exit_requested() (Richard).
Apply R-b, since the change is trivial enough.
Hi,
Christian has reported that one can make a TCG guest stuck by running
PRNO TRNG with a huge buffer. This series fixes this by making PRNO
TRNG end on cpu_loop_exit_requested().
Patch 1 is the fix, patch 2 is the test.
Cc: Harald, because this may conflict with the CPACF series.
Best regards,
Ilya
Ilya Leoshkevich (2):
target/s390x: Make PRNO TRNG interruptible
tests/tcg/s390x: Test PRNO TRNG interruptibility
target/s390x/tcg/crypto_helper.c | 22 ++++++++---
tests/tcg/s390x/Makefile.target | 1 +
tests/tcg/s390x/prno-trng.c | 67 ++++++++++++++++++++++++++++++++
3 files changed, 85 insertions(+), 5 deletions(-)
create mode 100644 tests/tcg/s390x/prno-trng.c
--
2.55.0
next reply other threads:[~2026-07-14 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 19:17 Ilya Leoshkevich [this message]
2026-07-14 19:17 ` [PATCH v2 1/2] target/s390x: Make PRNO TRNG interruptible Ilya Leoshkevich
2026-07-14 19:17 ` [PATCH v2 2/2] tests/tcg/s390x: Test PRNO TRNG interruptibility Ilya Leoshkevich
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=20260714191948.342204-1-iii@linux.ibm.com \
--to=iii@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@kernel.org \
--cc=farman@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.