device-tree: add re-randomization helper function
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 25 Oct 2022 00:43:18 +0000 (02:43 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2022 10:34:31 +0000 (11:34 +0100)
commite1e618b9a0f9c23e9caa5933fa30ee3d33e00bfe
treec0120a03d9d9ae3dfd1cddccf5fcca624e7b8026
parent7966d70f6f6b188475e67c2c363f19eec3d28c96
device-tree: add re-randomization helper function

When the system reboots, the rng-seed that the FDT has should be
re-randomized, so that the new boot gets a new seed. Several
architectures require this functionality, so export a function for
injecting a new seed into the given FDT.

Cc: Alistair Francis <alistair.francis@wdc.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20221025004327.568476-3-Jason@zx2c4.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/sysemu/device_tree.h
softmmu/device_tree.c