OSDN Git Service

hw/nios2: virt: pass random seed to fdt
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 Jul 2022 12:01:13 +0000 (14:01 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Jul 2022 17:01:44 +0000 (19:01 +0200)
commit6b23a6791685ac1bf071c0ebb35004e427c1806d
tree4ccf9df3ee2bfa0ddb87230e272af9308d21d5ad
parent7906f11e62c39cdbf8edc274cb311a420d675371
hw/nios2: 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 FDT node is part of the DT specification.

Cc: Chris Wulff <crwulff@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Message-Id: <20220719120113.118034-1-Jason@zx2c4.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/nios2/boot.c