Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_rng: Update rng device for all platform if needed #4244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions qemu/tests/cfg/rng_bat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
session_cmd_timeout = 360
read_rng_cmd = "dd if=/dev/random bs=1 count=10 2>/dev/null|hexdump"
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
rng_data_rex = "\w+"
driver_name = virtio_rng
RHEL.7, RHEL.8.0, RHEL.8.1, RHEL8.2, RHEL.8.3:
Expand All @@ -32,9 +33,6 @@
driver_name = virtio
check_rngd_service = "service rngd status"
start_rngd_service = "service rngd start"
s390x:
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
variants:
- @default:
- iommu_enabled:
Expand Down
4 changes: 1 addition & 3 deletions qemu/tests/cfg/rng_host_guest_read.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Linux:
read_rng_cmd = "dd if=/dev/random bs=1 count=10 2>/dev/null|hexdump"
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
rng_data_rex = "\w+"
driver_name = virtio_rng
RHEL.7, RHEL.8.0, RHEL.8.1, RHEL8.2, RHEL.8.3:
Expand All @@ -33,6 +34,3 @@
driver_name = virtio
check_rngd_service = "service rngd status"
start_rngd_service = "service rngd start"
s390x:
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
3 changes: 1 addition & 2 deletions qemu/tests/cfg/rng_hotplug.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
Linux:
session_cmd_timeout = 360
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
read_rng_cmd = "dd if=/dev/random bs=1 count=10 2>/dev/null|hexdump"
rng_data_rex = "\w+"
driver_name = virtio_rng
Expand All @@ -47,8 +48,6 @@
start_rngd_service = "service rngd start"
s390x:
rng_driver = "virtio-rng-ccw"
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
variants:
- multi_rngs:
rng_num = 4
Expand Down
4 changes: 1 addition & 3 deletions qemu/tests/cfg/rng_maxbytes_period.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
virt_test_type = qemu
no no_virtio_rng
only Linux
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
read_rng_cmd = "dd if=/dev/hwrng of=/dev/null bs=1024 count=100"
RHEL.7, RHEL.8.0, RHEL.8.1, RHEL8.2, RHEL.8.3:
check_rngd_service = "systemctl status rngd"
start_rngd_service = "systemctl start rngd"
RHEL.6:
check_rngd_service = "service rngd status"
start_rngd_service = "service rngd start"
s390x:
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
variants:
- positive_test:
no rng_egd
Expand Down
4 changes: 1 addition & 3 deletions qemu/tests/cfg/rng_read_longtime.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
session_cmd_timeout = 360
read_rng_cmd = "dd if=/dev/random bs=4 count=1000 2>/dev/null|hexdump"
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
rng_data_rex = "\w+"
driver_name = virtio_rng
RHEL.7, RHEL.8.0, RHEL.8.1, RHEL8.2, RHEL.8.3:
Expand All @@ -38,6 +39,3 @@
driver_name = virtio
check_rngd_service = "service rngd status"
start_rngd_service = "service rngd start"
s390x:
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
3 changes: 1 addition & 2 deletions qemu/tests/cfg/rng_stress.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
read_rng_cmd = "dd if=/dev/random bs=1 count=10 2>/dev/null|hexdump"
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
driver_available_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_available"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
rng_data_rex = "\w+"
driver_name = virtio_rng
RHEL.7, RHEL.8.0, RHEL.8.1, RHEL8.2, RHEL.8.3:
Expand All @@ -35,8 +36,6 @@
start_rngd_service = "service rngd start"
s390x:
rng_driver = "virtio-rng-ccw"
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
variants:
- two_device:
no RHEL.6
Expand Down
4 changes: 1 addition & 3 deletions qemu/tests/cfg/viorng_in_use.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
Linux:
read_rng_cmd = "dd if=/dev/random bs=10 count=10 2>/dev/null|hexdump"
driver_verifier_cmd = "cat /sys/devices/virtual/misc/hw_random/rng_current"
update_driver = "echo -n 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
target_process = dd
rng_data_rex = "\w+"
list_cmd = "ps aux | grep rngd | grep 'Rs\|Ds'"
Expand All @@ -42,9 +43,6 @@
driver_name = virtio
check_rngd_service = "service rngd status"
start_rngd_service = "service rngd start"
s390x:
RHEL.9:
update_driver = "echo 'virtio_rng.0' > /sys/devices/virtual/misc/hw_random/rng_current"
variants:
- before_bg_test:
run_bg_flag = "before_bg_test"
Expand Down