Skip to content

RFC revert RNG seed mess

Michael S. Tsirkin lkml qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Revert "x86: don't let decompressed kernel image clobber setup_data"hw/i386/microvm.c hw/i386/x86.c hw/nvram/fw_cfg.c +2 more+31 -591 reply
2/7Revert "x86: do not re-randomize RNG seed on snapshot load"hw/i386/x86.c+1 -11 reply
3/7Revert "x86: re-initialize RNG seed when selecting kernel"hw/i386/x86.c+1 -41 reply
4/7Revert "x86: reinitialize RNG seed on system reboot"hw/i386/x86.c+0 -71 reply
5/7Revert "x86: use typedef for SetupData struct"hw/i386/x86.c+7 -72 replies
6/7Revert "x86: return modified setup_data only if read as memory, not as file"hw/i386/x86.c hw/nvram/fw_cfg.c include/hw/nvram/fw_cfg.h+16 -643 replies
7/7Revert "hw/i386: pass RNG seed via setup_data entry"hw/i386/microvm.c hw/i386/pc.c hw/i386/pc_piix.c +4 more+8 -342 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchDov MurikNathan ChancellorDaniel P. Berrangé
SeriesT-b T-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH RFC 0/7] revert RNG seed mess

All attempts to fix up passing RNG seed via setup_data entry failed. Let's just rip out all of it. We'll start over.

Warning: all I did was git revert the relevant patches and resolve the (trivial) conflicts. Not even compiled - it's almost midnight here.

Jason this is the kind of approach I'd like to see, not yet another pointer math rich patch I need to spend time reviewing. Just get us back to where we started. We can redo "x86: use typedef for SetupData struct" later if we want, it's benign.

Could you do something like this pls?
Or test and ack if this patchset happens to work by luck.

Michael S. Tsirkin (7):
Revert "x86: don't let decompressed kernel image clobber setup_data" Revert "x86: do not re-randomize RNG seed on snapshot load" Revert "x86: re-initialize RNG seed when selecting kernel" Revert "x86: reinitialize RNG seed on system reboot" Revert "x86: use typedef for SetupData struct"
Revert "x86: return modified setup_data only if read as memory, not as
file"
Revert "hw/i386: pass RNG seed via setup_data entry"

 include/hw/i386/microvm.h |   5 +-
 include/hw/i386/pc.h      |   3 -
 include/hw/i386/x86.h     |   3 +-
 include/hw/nvram/fw_cfg.h |  31 ----------
 hw/i386/microvm.c         |  17 ++----
 hw/i386/pc.c              |   4 +-
 hw/i386/pc_piix.c         |   2 -
 hw/i386/pc_q35.c          |   2 -
 hw/i386/x86.c             | 122 ++++++++++----------------------------
 hw/nvram/fw_cfg.c         |  21 ++-----
 10 files changed, 49 insertions(+), 161 deletions(-)
Signature · 1 line
MST