hw/openrisc: virt: pass random seed to fdt
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 22 Jun 2022 11:45:13 +0000 (13:45 +0200)
committerStafford Horne <shorne@gmail.com>
Sun, 4 Sep 2022 06:02:57 +0000 (07:02 +0100)
commitc6fe3e6b4cd8d7b98ea37bf37fb3686ecd1304fe
treefea96c40212746ca105b320ee9eeb6675dc61f6c
parent66564c31e4e012c65c84d403c2dc14c0a754047f
hw/openrisc: virt: pass random seed to fdt

If the FDT contains /chosen/rng-seed, then the Linux RNG will use it to
initialize early. Set this using the usual guest random number
generation function. This is confirmed to successfully initialize the
RNG on Linux 5.19-rc2.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
hw/openrisc/virt.c