m68k: virt: pass RNG seed via bootinfo block
commita988465d0eb7e2ee31a3679bbe3fbe71681820da
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 26 Jun 2022 11:18:04 +0000 (26 13:18 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 6 Jul 2022 10:30:41 +0000 (6 12:30 +0200)
treec8bd43d7565293669d195147ee87e11cab488a6c
parent23f0a6c80d9dc05508a9c63e29e9ded905186099
m68k: virt: pass RNG seed via bootinfo block

This commit wires up bootinfo's RNG seed attribute so that Linux VMs can
have their RNG seeded from the earliest possible time in boot, just like
the "rng-seed" device tree property on those platforms. The link
contains the corresponding Linux patch.

Link: https://lore.kernel.org/lkml/20220626111509.330159-1-Jason@zx2c4.com/
Based-on: <20220625152318.120849-1-Jason@zx2c4.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Message-Id: <20220626111804.330745-1-Jason@zx2c4.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/bootinfo.h
hw/m68k/virt.c
include/standard-headers/asm-m68k/bootinfo-virt.h