diff options
author | Jason A. Donenfeld | 2022-10-23 21:13:41 +0200 |
---|---|---|
committer | Laurent Vivier | 2022-10-24 10:47:14 +0200 |
commit | 281ac13ecedf8bfe1b83e566f39cb5683e553cb6 (patch) | |
tree | 06c9f71d6fc14cde5df9d39d523a4cee919b74a2 /fsdev/virtfs-proxy-helper.c | |
parent | m68k: rework BI_VIRT_RNG_SEED as BI_RNG_SEED (diff) | |
download | qemu-281ac13ecedf8bfe1b83e566f39cb5683e553cb6.tar.gz qemu-281ac13ecedf8bfe1b83e566f39cb5683e553cb6.tar.xz qemu-281ac13ecedf8bfe1b83e566f39cb5683e553cb6.zip |
m68k: write bootinfo as rom section and re-randomize on reboot
Rather than poking directly into RAM, add the bootinfo block as a proper
ROM, so that it's restored when rebooting the system. This way, if the
guest corrupts any of the bootinfo items, but then tries to reboot,
it'll still be restored back to normal as expected.
Then, since the RNG seed needs to be fresh on each boot, regenerate the
RNG seed in the ROM when reseting the CPU.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Message-Id: <20221023191340.36238-1-Jason@zx2c4.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'fsdev/virtfs-proxy-helper.c')
0 files changed, 0 insertions, 0 deletions