summaryrefslogtreecommitdiffstats
path: root/fsdev/virtfs-proxy-helper.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2022-10-23 21:13:41 +0200
committerLaurent Vivier2022-10-24 10:47:14 +0200
commit281ac13ecedf8bfe1b83e566f39cb5683e553cb6 (patch)
tree06c9f71d6fc14cde5df9d39d523a4cee919b74a2 /fsdev/virtfs-proxy-helper.c
parentm68k: rework BI_VIRT_RNG_SEED as BI_RNG_SEED (diff)
downloadqemu-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