qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/openrisc: pass random seed to fdt


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] hw/openrisc: pass random seed to fdt
Date: Mon, 13 Jun 2022 15:52:51 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 13/6/22 12:58, Jason A. Donenfeld wrote:
On 6/13/22, Stafford Horne <shorne@gmail.com> wrote:
On Sun, Jun 12, 2022 at 11:59:49PM +0200, Jason A. Donenfeld wrote:
If the FDT contains /chosen/rng-seed, then the Linux RNG will use it to
initialize early. Set this using the usual guest random number
generation function. This is confirmed to successfully initialize the
RNG on Linux 5.19-rc2.

Cc: Stafford Horne <shorne@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
  hw/openrisc/openrisc_sim.c | 6 ++++++
  1 file changed, 6 insertions(+)

This all looks fine to me.  I will queue it with my current changes.  Since
this
is only applying to openrisc_sim I would like to also apply it to virt.  To
do
that I need to have a common core openrisc system creation api.  That way I
don't end up copying and pasting this to every platform.

Looking at commit cb57df6f7f ("hw/arm/raspi: Make machines children of
abstract RaspiMachineClass") and around could help.


Sure. Or just do it on the virt board only if that's easier.

Jason





reply via email to

[Prev in Thread] Current Thread [Next in Thread]