All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL v1 0/1] Xilinx queue
@ 2022-09-21 20:17 Edgar E. Iglesias
  2022-09-21 20:17 ` [PULL v1 1/1] hw/microblaze: pass random seed to fdt Edgar E. Iglesias
  2022-09-22 19:05 ` [PULL v1 0/1] Xilinx queue Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2022-09-21 20:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, richard.henderson, edgar.iglesias

From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

The following changes since commit 2906f933dd1de6d94c54881cc16ea7390a6ba300:

  Merge tag 'pull-request-2022-09-20' of https://gitlab.com/thuth/qemu into staging (2022-09-20 16:24:07 -0400)

are available in the Git repository at:

  git@github.com:edgarigl/qemu.git tags/edgar/xilinx-next-2022-09-21.for-upstream

for you to fetch changes up to b91b6b5a2cd83a096116929dfc8e016091080adc:

  hw/microblaze: pass random seed to fdt (2022-09-21 19:59:56 +0200)

----------------------------------------------------------------
Xilinx queue

----------------------------------------------------------------
Jason A. Donenfeld (1):
      hw/microblaze: pass random seed to fdt

 hw/microblaze/boot.c | 5 +++++
 1 file changed, 5 insertions(+)

Jason A. Donenfeld (1):
  hw/microblaze: pass random seed to fdt

 hw/microblaze/boot.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PULL v1 1/1] hw/microblaze: pass random seed to fdt
  2022-09-21 20:17 [PULL v1 0/1] Xilinx queue Edgar E. Iglesias
@ 2022-09-21 20:17 ` Edgar E. Iglesias
  2022-09-22 19:05 ` [PULL v1 0/1] Xilinx queue Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2022-09-21 20:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, richard.henderson, edgar.iglesias

From: "Jason A. Donenfeld" <Jason@zx2c4.com>

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 FDT node is part of the DT specification.

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
---
 hw/microblaze/boot.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/microblaze/boot.c b/hw/microblaze/boot.c
index 8b92a9801a..25ad54754e 100644
--- a/hw/microblaze/boot.c
+++ b/hw/microblaze/boot.c
@@ -30,6 +30,7 @@
 #include "qemu/option.h"
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
+#include "qemu/guest-random.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/reset.h"
 #include "hw/boards.h"
@@ -75,6 +76,7 @@ static int microblaze_load_dtb(hwaddr addr,
     int fdt_size;
     void *fdt = NULL;
     int r;
+    uint8_t rng_seed[32];
 
     if (dtb_filename) {
         fdt = load_device_tree(dtb_filename, &fdt_size);
@@ -83,6 +85,9 @@ static int microblaze_load_dtb(hwaddr addr,
         return 0;
     }
 
+    qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed));
+    qemu_fdt_setprop(fdt, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed));
+
     if (kernel_cmdline) {
         r = qemu_fdt_setprop_string(fdt, "/chosen", "bootargs",
                                     kernel_cmdline);
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PULL v1 0/1] Xilinx queue
  2022-09-21 20:17 [PULL v1 0/1] Xilinx queue Edgar E. Iglesias
  2022-09-21 20:17 ` [PULL v1 1/1] hw/microblaze: pass random seed to fdt Edgar E. Iglesias
@ 2022-09-22 19:05 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2022-09-22 19:05 UTC (permalink / raw)
  To: Edgar E. Iglesias
  Cc: qemu-devel, peter.maydell, richard.henderson, edgar.iglesias

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-22 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21 20:17 [PULL v1 0/1] Xilinx queue Edgar E. Iglesias
2022-09-21 20:17 ` [PULL v1 1/1] hw/microblaze: pass random seed to fdt Edgar E. Iglesias
2022-09-22 19:05 ` [PULL v1 0/1] Xilinx queue Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.