[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC 4/7] Revert "x86: reinitialize RNG seed on system reboot"
From: |
Michael S. Tsirkin |
Subject: |
[PATCH RFC 4/7] Revert "x86: reinitialize RNG seed on system reboot" |
Date: |
Wed, 8 Feb 2023 16:12:42 -0500 |
This reverts commit 763a2828bf313ed55878b09759dc435355035f2e.
Fixes: 763a2828bf ("x86: reinitialize RNG seed on system reboot")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/i386/x86.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index e1a5f244a9..32f37ab7c2 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -787,12 +787,6 @@ static void reset_setup_data(void *opaque)
stq_p(fixup->pos, fixup->orig_val);
}
-static void reset_rng_seed(void *opaque)
-{
- SetupData *setup_data = opaque;
- qemu_guest_getrandom_nofail(setup_data->data,
le32_to_cpu(setup_data->len));
-}
-
void x86_load_linux(X86MachineState *x86ms,
FWCfgState *fw_cfg,
int acpi_data_size,
@@ -1115,7 +1109,6 @@ 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(reset_rng_seed, setup_data);
}
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_ADDR, prot_addr);
--
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, 2023/02/08
- [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 <=
- [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
- [PATCH RFC 7/7] Revert "hw/i386: pass RNG seed via setup_data entry", Michael S. Tsirkin, 2023/02/08