arch-riscv, dev: add VirtIO entropy device(VirtIORng) support

Systemd, which is used by many main stream Linux distributions,
will lead to slow boot if entropy is low. On X86 platforms,
this problem can be alleviated by enabling RDRAND instructions.
However, RISC-V doesn't have similar instructions. For QEMU/KVM,
this problem can be solved by passing randomness from the host
via virtio_rng. But gem5 doesn't have VirtIORng support now.

Some user report that the boot time of is
too long. To alleviate this problem, this patch add VirtIORng
device support for gem5.

Change-Id: Id93b5703161701212fd6683837034cb0cff590c5
Reviewed-by: Bobby Bruce <>
Maintainer: Bobby Bruce <>
Tested-by: kokoro <>
Reviewed-by: Jason Lowe-Power <>
Maintainer: Jason Lowe-Power <>
7 files changed