[PATCH 0/2] x86: fix fallout from switching setup_data from kernel image to cmdline

Jason A. Donenfeld posted 2 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230207224847.94429-1-Jason@zx2c4.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/i386/x86.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
[PATCH 0/2] x86: fix fallout from switching setup_data from kernel image to cmdline
Posted by Jason A. Donenfeld 1 year, 2 months ago
With eac7a7791bb6 ("x86: don't let decompressed kernel image clobber
setup_data"), the rng seed setup_data is now appended to the cmdline
file rather than the kernel image file. In the process of doing that,
two things were left out: the check for sev_enabled(), and resetting the
RNG seed when selecting the cmdline. This short series fixes those up.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Dov Murik <dovmurik@linux.ibm.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <richard.henderson@linaro.org>

Dov Murik (1):
  x86: don't append setup_data to cmdline for SEV guests

Jason A. Donenfeld (1):
  x86: reset rng seed when reading cmdline, not kernel image

 hw/i386/x86.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-- 
2.39.1