Skip to content

target/s390x: Make PRNO TRNG interruptible

Ilya Leoshkevich qemu-devel 2 versions Applied

Status from this message: Thanks! Applied for 11.2

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v12 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2target/s390x: Make PRNO TRNG interruptibletarget/s390x/tcg/crypto_helper.c+17 -51 reply
2/2tests/tcg/s390x: Test PRNO TRNG interruptibilitytests/tcg/s390x/Makefile.target tests/tcg/s390x/prno-trng.c+68 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonHarald Freudenberger
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] target/s390x: Make PRNO TRNG interruptible

v1: https://lore.kernel.org/qemu-devel/[email protected]/
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
Signature · 1 line
2.55.0