On Mon, Sep 9, 2024 at 3:38 AM gaosong <gaos...@loongson.cn> wrote: > > > > 在 2024/9/5 下午11:33, Jason A. Donenfeld 写道: > > 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 the same procedure that's done in b91b6b5a2c ("hw/microblaze: > > pass random seed to fdt"), e4b4f0b71c ("hw/riscv: virt: pass random seed > > to fdt"), c6fe3e6b4c ("hw/openrisc: virt: pass random seed to fdt"), > > 67f7e426e5 ("hw/i386: pass RNG seed via setup_data entry"), c287941a4d > > ("hw/rx: pass random seed to fdt"), 5e19cc68fb ("hw/mips: boston: pass > > random seed to fdt"), 6b23a67916 ("hw/nios2: virt: pass random seed to fdt") > > c4b075318e ("hw/ppc: pass random seed to fdt"), and 5242876f37 > > ("hw/arm/virt: dt: add rng-seed property"). > > > > These earlier commits later were amended to rerandomize the RNG seed on > > snapshot load, but the LoongArch code somehow already does that, despite > > not having this patch here, presumably due to some lucky copy and > > pasting. > > > > Signed-off-by: Jason A. Donenfeld <ja...@zx2c4.com> > > --- > > hw/loongarch/virt.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > Reviewed-by: Song Gao <gaos...@loongson.cn>
Do you generally queue these up in https://gitlab.com/gaosong/qemu/-/commits/loongarch-next/?ref_type=heads ? Or is it a different branch?