[PATCH 2/9] x86/kexec: Ensure preserve_context flag is set on return to kernel
David Woodhouse
dwmw2 at infradead.org
Fri Jan 3 02:14:38 PST 2025
On Tue, 2024-12-17 at 17:38 +0100, Uros Bizjak wrote:
>
> > diff --git a/arch/x86/kernel/relocate_kernel_64.S
> > b/arch/x86/kernel/relocate_kernel_64.S
> > index 9bd601dd8659..1a52e4339c1d 100644
> > --- a/arch/x86/kernel/relocate_kernel_64.S
> > +++ b/arch/x86/kernel/relocate_kernel_64.S
> > @@ -220,6 +220,7 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped)
> > movq kexec_pa_table_page(%rip), %rax
> > movq %rax, %cr3
> > lea PAGE_SIZE(%r8), %rsp
> > + movq $1, %r11 /* Ensure preserve_context flag is
> > set */
>
> You can save a byte here by using "movl $1, %r11d".
Thanks. I've done that locally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5069 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20250103/85bd88cc/attachment.p7s>
More information about the kexec
mailing list