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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to