[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC 2/7] Revert "x86: do not re-randomize RNG seed on snapshot lo
From: |
Michael S. Tsirkin |
Subject: |
[PATCH RFC 2/7] Revert "x86: do not re-randomize RNG seed on snapshot load" |
Date: |
Wed, 8 Feb 2023 16:12:31 -0500 |
This reverts commit 14b29fea742034186403914b4d013d0e83f19e78.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: 14b29fea74 ("x86: do not re-randomize RNG seed on snapshot load")
---
hw/i386/x86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index 78cc131926..7984f65352 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -1115,7 +1115,7 @@ void x86_load_linux(X86MachineState *x86ms,
setup_data->type = cpu_to_le32(SETUP_RNG_SEED);
setup_data->len = cpu_to_le32(RNG_SEED_LENGTH);
qemu_guest_getrandom_nofail(setup_data->data, RNG_SEED_LENGTH);
- qemu_register_reset_nosnapshotload(reset_rng_seed, setup_data);
+ qemu_register_reset(reset_rng_seed, setup_data);
fw_cfg_add_bytes_callback(fw_cfg, FW_CFG_KERNEL_DATA, reset_rng_seed,
NULL,
setup_data, kernel, kernel_size, true);
} else {
--
MST
- [PATCH RFC 0/7] revert RNG seed mess, Michael S. Tsirkin, 2023/02/08
- [PATCH RFC 1/7] Revert "x86: don't let decompressed kernel image clobber setup_data", Michael S. Tsirkin, 2023/02/08
- [PATCH RFC 2/7] Revert "x86: do not re-randomize RNG seed on snapshot load",
Michael S. Tsirkin <=
- [PATCH RFC 3/7] Revert "x86: re-initialize RNG seed when selecting kernel", Michael S. Tsirkin, 2023/02/08
- [PATCH RFC 4/7] Revert "x86: reinitialize RNG seed on system reboot", Michael S. Tsirkin, 2023/02/08
- [PATCH RFC 6/7] Revert "x86: return modified setup_data only if read as memory, not as file", Michael S. Tsirkin, 2023/02/08
- [PATCH RFC 5/7] Revert "x86: use typedef for SetupData struct", Michael S. Tsirkin, 2023/02/08