On 14.06.25 19:39, Jason Andryuk wrote:
On Fri, Mar 21, 2025 at 5:30 AM Juergen Gross <jgr...@suse.com> wrote:With all kexec preparations done, activate the new kernel. Signed-off-by: Juergen Gross <jgr...@suse.com> --- kexec.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/kexec.c b/kexec.c index 2db876e8..85b09959 100644 --- a/kexec.c +++ b/kexec.c @@ -169,6 +169,7 @@ int kexec(void *kernel, unsigned long kernel_size, const char *cmdline)@@ -192,6 +193,13 @@ int kexec(void *kernel, unsigned long kernel_size, const char *cmdline) if ( ret ) goto err; + kexec_page = (void *)alloc_page();kexec_page() is referenced already in do_kexec(), but it hasn't been hooked up yet, right? I guess that is okay.
Yes, shouldn't cause any issues.
If not an ASSERT on 1 page, then allocate KEXEC_SECSIZE?
Handled now via an ASSERT() in the linker script. Juergen
OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature