hw/mips: boston: pass random seed to fdt
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 Jul 2022 12:08:43 +0000 (14:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Jul 2022 17:01:44 +0000 (19:01 +0200)
commit5e19cc68fb42c6ecabe5cf37012c887d25ffd144
treec1710eb78648d60ae1a65595af5fc863a4b736d0
parent6b23a6791685ac1bf071c0ebb35004e427c1806d
hw/mips: boston: 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.

I'd do the same for other MIPS platforms but boston is the only one that
seems to use FDT.

Cc: Paul Burton <paulburton@kernel.org>
Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Message-Id: <20220719120843.134392-1-Jason@zx2c4.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/mips/boston.c