mirror_qemu/hw/m68k
Jason A. Donenfeld 281ac13ece 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>
2022-10-24 10:47:14 +02:00
..
Kconfig m68k: add Virtual M68k Machine 2021-03-15 21:03:06 +01:00
an5206.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
bootinfo.h m68k: write bootinfo as rom section and re-randomize on reboot 2022-10-24 10:47:14 +02:00
mcf5206.c ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY 2022-05-19 16:19:03 +01:00
mcf5208.c ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY 2022-05-19 16:19:03 +01:00
mcf_intc.c hw: Remove superfluous includes of hw/hw.h 2021-05-02 17:24:50 +02:00
meson.build m68k: add Virtual M68k Machine 2021-03-15 21:03:06 +01:00
next-cube.c softmmu/memory: Pass ram_flags to memory_region_init_ram_shared_nomigrate() 2021-06-15 20:27:38 +02:00
next-kbd.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
q800.c m68k: write bootinfo as rom section and re-randomize on reboot 2022-10-24 10:47:14 +02:00
virt.c m68k: write bootinfo as rom section and re-randomize on reboot 2022-10-24 10:47:14 +02:00