m68k: virt: Use RNG seed from bootinfo block
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 26 Jun 2022 11:15:09 +0000 (13:15 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 6 Jul 2022 12:07:04 +0000 (14:07 +0200)
commita1ee38ab1a75ee20e4aad232894db3ea45d3ce4f
tree2e79e381bdcfcb9e35d53e1b1357a3b53ea7eee8
parent6f08e51cdbe08370ad0a8580d0d6ea6ffdfed46d
m68k: virt: Use RNG seed from bootinfo block

Other virt VMs can pass RNG seeds via the "rng-seed" device tree
property or via UEFI, but m68k doesn't have either. Instead it has its
own bootinfo protocol. So this commit adds support for receiving a RNG
seed from it, which will be used at the earliest possible time in boot,
just like device tree.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20220626111509.330159-1-Jason@zx2c4.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/uapi/asm/bootinfo-virt.h
arch/m68k/virt/config.c