Re: [PATCH 2/9] x86/kexec: Ensure preserve_context flag is set on return to kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>>


[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux