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 always end after generating 16KB.
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 | 25 +++++++++---
tests/tcg/s390x/Makefile.target | 1 +
tests/tcg/s390x/prno-trng.c | 67 ++++++++++++++++++++++++++++++++
3 files changed, 87 insertions(+), 6 deletions(-)
create mode 100644 tests/tcg/s390x/prno-trng.c
--
2.55.0