Re: [PATCH v2 13/20] x86/asm/64: Pass sp0 directly to load_sp0()

2017-11-02 Thread Andy Lutomirski
> On Nov 2, 2017, at 10:48 AM, Ingo Molnar wrote: > > > * Andy Lutomirski wrote: > >> load_sp0() had an odd signature: >> >> void load_sp0(struct tss_struct *tss, struct thread_struct *thread); >> >> Simplify it to: >> >> void load_sp0(unsigned long sp0); > > I also added this to the cha

Re: [PATCH v2 13/20] x86/asm/64: Pass sp0 directly to load_sp0()

2017-11-02 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Andy Lutomirski wrote: > > > load_sp0() had an odd signature: > > > > void load_sp0(struct tss_struct *tss, struct thread_struct *thread); > > > > Simplify it to: > > > > void load_sp0(unsigned long sp0); > > I also added this to the changelog: > > > Also simpl

Re: [PATCH v2 13/20] x86/asm/64: Pass sp0 directly to load_sp0()

2017-11-02 Thread Ingo Molnar
* Andy Lutomirski wrote: > load_sp0() had an odd signature: > > void load_sp0(struct tss_struct *tss, struct thread_struct *thread); > > Simplify it to: > > void load_sp0(unsigned long sp0); I also added this to the changelog: > Also simplify a few get_cpu()/put_cpu() sequences to > preempt

[PATCH v2 13/20] x86/asm/64: Pass sp0 directly to load_sp0()

2017-11-02 Thread Andy Lutomirski
load_sp0() had an odd signature: void load_sp0(struct tss_struct *tss, struct thread_struct *thread); Simplify it to: void load_sp0(unsigned long sp0); Reviewed-by: Borislav Petkov Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/paravirt.h | 5 ++--- arch/x86/include/asm/parav