aboutsummaryrefslogtreecommitdiff
path: root/tests/avocado/machine_s390_ccw_virtio.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-09-21 12:07:29 +0200
committerThomas Huth <thuth@redhat.com>2022-09-26 17:23:11 +0200
commit3dbc5fdacb5af08dffa408ac7315eae53c4d5497 (patch)
tree38b3f4c565db6558d1406b1b38d7b219031af263 /tests/avocado/machine_s390_ccw_virtio.py
parent9f17bfdab422887807cbd5260ed6b0b6e54ddb33 (diff)
downloadqemu-3dbc5fdacb5af08dffa408ac7315eae53c4d5497.zip
qemu-3dbc5fdacb5af08dffa408ac7315eae53c4d5497.tar.gz
qemu-3dbc5fdacb5af08dffa408ac7315eae53c4d5497.tar.bz2
target/s390x: support PRNO_TRNG instruction
In order for hosts running inside of TCG to initialize the kernel's random number generator, we should support the PRNO_TRNG instruction, backed in the usual way with the qemu_guest_getrandom helper. This is confirmed working on Linux 5.19. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Message-Id: <20220921100729.2942008-2-Jason@zx2c4.com> Reviewed-by: David Hildenbrand <david@redhat.com> [thuth: turn prno-trng off in avocado test to avoid breaking it] Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/avocado/machine_s390_ccw_virtio.py')
-rw-r--r--tests/avocado/machine_s390_ccw_virtio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/avocado/machine_s390_ccw_virtio.py b/tests/avocado/machine_s390_ccw_virtio.py
index 438a6f4..78152f2 100644
--- a/tests/avocado/machine_s390_ccw_virtio.py
+++ b/tests/avocado/machine_s390_ccw_virtio.py
@@ -66,6 +66,7 @@ class S390CCWVirtioMachine(QemuSystemTest):
'-kernel', kernel_path,
'-initrd', initrd_path,
'-append', kernel_command_line,
+ '-cpu', 'max,prno-trng=off',
'-device', 'virtio-net-ccw,devno=fe.1.1111',
'-device',
'virtio-rng-ccw,devno=fe.2.0000,max_revision=0,id=rn1',