[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230208211212.41951-4-mst@redhat.com>
Date: Wed, 8 Feb 2023 16:12:37 -0500
From: "Michael S. Tsirkin" <mst@...hat.com>
To: qemu-devel@...gnu.org, "Jason A. Donenfeld" <Jason@...c4.com>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Dov Murik <dovmurik@...ux.ibm.com>,
Tom Lendacky <thomas.lendacky@....com>,
Gerd Hoffmann <kraxel@...hat.com>,
Daniel P . Berrangé <berrange@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Richard Henderson <richard.henderson@...aro.org>,
"H . Peter Anvin" <hpa@...or.com>,
Philippe Mathieu-Daudé <philmd@...aro.org>,
Nathan Chancellor <nathan@...nel.org>,
Borislav Petkov <bp@...en8.de>,
Eric Biggers <ebiggers@...nel.org>,
Marcel Apfelbaum <marcel.apfelbaum@...il.com>,
Eduardo Habkost <eduardo@...kost.net>
Subject: [PATCH RFC 3/7] Revert "x86: re-initialize RNG seed when selecting
kernel"
This reverts commit cc63374a5a7c240b7d3be734ef589dabbefc7527.
Fixes: cc63374a5a ("x86: re-initialize RNG seed when selecting kernel")
Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
---
hw/i386/x86.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index 7984f65352..e1a5f244a9 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -1116,14 +1116,11 @@ void x86_load_linux(X86MachineState *x86ms,
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_bytes_callback(fw_cfg, FW_CFG_KERNEL_DATA, reset_rng_seed, NULL,
- setup_data, kernel, kernel_size, true);
- } else {
- fw_cfg_add_bytes(fw_cfg, FW_CFG_KERNEL_DATA, kernel, kernel_size);
}
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_ADDR, prot_addr);
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size);
+ fw_cfg_add_bytes(fw_cfg, FW_CFG_KERNEL_DATA, kernel, kernel_size);
sev_load_ctx.kernel_data = (char *)kernel;
sev_load_ctx.kernel_size = kernel_size;
--
MST
Powered by blists - more mailing lists