Re: [PATCH 11/18] x86/asm/64: Pass sp0 directly to load_sp0()

Borislav Petkov
2017-10-27T20:12:02Z

On Thu, Oct 26, 2017 at 01:26:43AM -0700, 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);
>
> Signed-off-by: Andy Lutomirski <luto@kernel.org>
> ---
> arch/x86/include/asm/paravirt.h | 5 ++---
> arch/x86/include/asm/paravirt_types.h | 2 +-
> arch/x86/include/asm/processor.h | 9 ++++-----
> arch/x86/kernel/cpu/common.c | 4 ++--
> arch/x86/kernel/process_32.c | 2 +-
> arch/x86/kernel/process_64.c | 2 +-
> arch/x86/kernel/vm86_32.c | 14 ++++++--------
> arch/x86/xen/enlighten_pv.c | 7 +++----
> 8 files changed, 20 insertions(+), 25 deletions(-)

Reviewed-by: Borislav Petkov <bp@suse.de>

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--