Re: [PATCH v2 11/18] x86/asm/64: Separate cpu_current_top_of_stack from TSS.sp0

2017-11-23 Thread Thomas Gleixner
On Tue, 21 Nov 2017, Andy Lutomirski wrote: > On 64-bit kernels, we used to assume that TSS.sp0 was the current > top of stack. With the addition of an entry trampoline, this will > no longer be the case. Store the current top of stack in TSS.sp1, > which is otherwise unused but shares the same

[PATCH v2 11/18] x86/asm/64: Separate cpu_current_top_of_stack from TSS.sp0

2017-11-21 Thread Andy Lutomirski
On 64-bit kernels, we used to assume that TSS.sp0 was the current top of stack. With the addition of an entry trampoline, this will no longer be the case. Store the current top of stack in TSS.sp1, which is otherwise unused but shares the same cacheline. Signed-off-by: Andy Lutomirski --- arch