lkml.org 
[lkml]   [2015]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] x86: save user %rsp in pt_regs->sp on SYSCALL64 fastpath

* Denys Vlasenko <dvlasenk@redhat.com> wrote:

> PER_CPU(old_rsp) usage is simplified - now it is used only
> as temp storage, and userspace stack pointer is immediately stored
> in pt_regs->sp on syscall entry, instead of being used later,
> on syscall exit.
>
> All references of PER_CPU(old_rsp) in C code are gone -
> pt_regs->sp is used instead.
>
> This also allows to get rid of thread_struct::usersp,
> which was needed only to set PER_CPU(old_rsp) for
> correct return from fork/clone.

Would it be possible to split this one into two parts as well:

- Essential changes into the first one (old_rsp update
simplification, usersp usage conversion)

- Removal of usersp, old_rsp extern declaration removal, comment
changes, in the second patch?

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-03-09 17:41    [W:0.251 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site