From 2511abee0b0a9e90d5991128e64b433408bd4c30 Mon Sep 17 00:00:00 2001 From: Bogdan Marcynkov Date: Mon, 4 Nov 2024 13:03:59 +0100 Subject: [PATCH] RNG: guest report driver updates for RHEL.7,RHEL.8 ID: KVMAUTOMA-2669 Signed-off-by: Bogdan Marcynkov --- qemu/tests/cfg/rng_bat.cfg | 2 ++ qemu/tests/cfg/rng_host_guest_read.cfg | 2 ++ qemu/tests/cfg/rng_hotplug.cfg | 2 ++ qemu/tests/cfg/rng_maxbytes_period.cfg | 2 ++ qemu/tests/cfg/rng_read_longtime.cfg | 2 ++ qemu/tests/cfg/rng_stress.cfg | 2 ++ qemu/tests/cfg/viorng_in_use.cfg | 2 ++ 7 files changed, 14 insertions(+) diff --git a/qemu/tests/cfg/rng_bat.cfg b/qemu/tests/cfg/rng_bat.cfg index 5ee849a2bf..008205c583 100644 --- a/qemu/tests/cfg/rng_bat.cfg +++ b/qemu/tests/cfg/rng_bat.cfg @@ -33,6 +33,8 @@ check_rngd_service = "service rngd status" start_rngd_service = "service rngd start" s390x: + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" variants: diff --git a/qemu/tests/cfg/rng_host_guest_read.cfg b/qemu/tests/cfg/rng_host_guest_read.cfg index affd555481..ff93068212 100644 --- a/qemu/tests/cfg/rng_host_guest_read.cfg +++ b/qemu/tests/cfg/rng_host_guest_read.cfg @@ -34,5 +34,7 @@ check_rngd_service = "service rngd status" start_rngd_service = "service rngd start" s390x: + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" diff --git a/qemu/tests/cfg/rng_hotplug.cfg b/qemu/tests/cfg/rng_hotplug.cfg index 70fab14227..b36801487e 100644 --- a/qemu/tests/cfg/rng_hotplug.cfg +++ b/qemu/tests/cfg/rng_hotplug.cfg @@ -47,6 +47,8 @@ start_rngd_service = "service rngd start" s390x: rng_driver = "virtio-rng-ccw" + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" variants: diff --git a/qemu/tests/cfg/rng_maxbytes_period.cfg b/qemu/tests/cfg/rng_maxbytes_period.cfg index e6f104fe0e..74fdbe7b64 100644 --- a/qemu/tests/cfg/rng_maxbytes_period.cfg +++ b/qemu/tests/cfg/rng_maxbytes_period.cfg @@ -12,6 +12,8 @@ check_rngd_service = "service rngd status" start_rngd_service = "service rngd start" s390x: + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" variants: diff --git a/qemu/tests/cfg/rng_read_longtime.cfg b/qemu/tests/cfg/rng_read_longtime.cfg index c3cfd25f2d..cc0eab9d0e 100644 --- a/qemu/tests/cfg/rng_read_longtime.cfg +++ b/qemu/tests/cfg/rng_read_longtime.cfg @@ -39,5 +39,7 @@ check_rngd_service = "service rngd status" start_rngd_service = "service rngd start" s390x: + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" diff --git a/qemu/tests/cfg/rng_stress.cfg b/qemu/tests/cfg/rng_stress.cfg index 584ce7cec3..fe633e442d 100644 --- a/qemu/tests/cfg/rng_stress.cfg +++ b/qemu/tests/cfg/rng_stress.cfg @@ -35,6 +35,8 @@ start_rngd_service = "service rngd start" s390x: rng_driver = "virtio-rng-ccw" + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" variants: diff --git a/qemu/tests/cfg/viorng_in_use.cfg b/qemu/tests/cfg/viorng_in_use.cfg index dae6cb8aa7..2ab03e15d3 100644 --- a/qemu/tests/cfg/viorng_in_use.cfg +++ b/qemu/tests/cfg/viorng_in_use.cfg @@ -43,6 +43,8 @@ check_rngd_service = "service rngd status" start_rngd_service = "service rngd start" s390x: + !RHEL.7,RHEL.8: + update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" RHEL.9: update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current" variants: