Revert "x86/boot: Pull up cmdline preparation and early param parsing"
authorBorislav Petkov <bp@suse.de>
Mon, 13 Dec 2021 11:27:56 +0000 (12:27 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 15 Dec 2021 10:38:57 +0000 (11:38 +0100)
commitfbe6183998546f8896ee0b620ece86deff5a2fd1
tree80cd4e28a55e39d4f0fa67fba2d48e6b1a0ce62a
parent58e138d62476fc5f889252dcf73848beeaa54789
Revert "x86/boot: Pull up cmdline preparation and early param parsing"

This reverts commit 8d48bf8206f77aa8687f0e241e901e5197e52423.

It turned out to be a bad idea as it broke supplying mem= cmdline
parameters due to parse_memopt() requiring preparatory work like setting
up the e820 table in e820__memory_setup() in order to be able to exclude
the range specified by mem=.

Pulling that up would've broken Xen PV again, see threads at

  https://lkml.kernel.org/r/20210920120421.29276-1-jgross@suse.com

due to xen_memory_setup() needing the first reservations in
early_reserve_memory() - kernel and initrd - to have happened already.

This could be fixed again by having Xen do those reservations itself...

Long story short, revert this and do a simpler fix in a later patch.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211213112757.2612-3-bp@alien8.de
arch/x86/kernel/setup.c