diff options
author | Maciej Żenczykowski <maze@google.com> | 2018-10-09 15:54:58 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2018-10-09 17:37:40 -0700 |
commit | 2cc987d9dd9ad877e6f6d59e714c1a864c978444 (patch) | |
tree | f95e2769564ab012af46a588e30e9322e2e38741 | |
parent | 56237c9b64f54c2b978fb49975b18d7782f2fac7 (diff) | |
download | kernel_tests-2cc987d9dd9ad877e6f6d59e714c1a864c978444.tar.gz kernel_tests-2cc987d9dd9ad877e6f6d59e714c1a864c978444.tar.bz2 kernel_tests-2cc987d9dd9ad877e6f6d59e714c1a864c978444.zip |
Enable virtio rng device for net tests on qemu/kvm.android-o-mr1-iot-release-smart-display-r3oreo-mr1-1.2-iot-release
Before:
root@(none):/host# dmesg | egrep -i 'virtio|random|rnd|rng'
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x445 with crng_init=0
[ 1.068452] random: fast init done
[ 1.226737] random: all_tests.py: uninitialized urandom read (2500 bytes read)
[ 1.297999] random: all_tests.py: uninitialized urandom read (2500 bytes read)
[ 1.301358] random: all_tests.py: uninitialized urandom read (2500 bytes read)
[ 51.829187] urandom_read: 1 callbacks suppressed
[ 51.829189] random: all_tests.py: uninitialized urandom read (8 bytes read)
[ 51.833191] random: all_tests.py: uninitialized urandom read (8 bytes read)
[ 51.836113] random: all_tests.py: uninitialized urandom read (8 bytes read)
[ 78.285661] random: crng init done
[ 78.287299] random: 3 urandom warning(s) missed due to ratelimiting
After:
root@(none):/host# dmesg | egrep -i 'virtio|random|rnd|rng'
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x445 with crng_init=0
[ 1.018666] random: fast init done
[ 1.020632] random: crng init done
root@(none):/host# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Unclassified device [00ff]: Red Hat, Inc Virtio RNG
00:03.0 Unclassified device [0002]: Red Hat, Inc Virtio filesystem
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
(note the new Virtio RNG device)
Change-Id: Ifea0c261af1209f9307adb150cf32f7bc92aba74
-rwxr-xr-x | net/test/run_net_test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh index 82497674..54e64a46 100755 --- a/net/test/run_net_test.sh +++ b/net/test/run_net_test.sh @@ -300,6 +300,7 @@ else -kernel $KERNEL_BINARY \ -no-user-config -nodefaults -no-reboot -display none \ -machine pc,accel=kvm -cpu host -smp 4,sockets=4,cores=1,threads=1 \ + -device virtio-rng-pci \ -chardev file,id=exitcode,path=exitcode \ -device isa-serial,chardev=exitcode \ -fsdev local,security_model=mapped-xattr,id=fsdev0,fmode=0644,dmode=0755,path=$SCRIPT_DIR \ |