Re: [PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-20 Thread Josh Poimboeuf
On Sat, Jun 18, 2016 at 04:56:16PM -0400, Brian Gerst wrote: > Move the low-level context switch code to an out-of-line asm stub instead of > using complex inline asm. This allows constructing a new stack frame for the > child process to make it seamlessly flow to ret_from_fork without an extra >

Re: [PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-20 Thread Josh Poimboeuf
On Sat, Jun 18, 2016 at 04:56:16PM -0400, Brian Gerst wrote: > Move the low-level context switch code to an out-of-line asm stub instead of > using complex inline asm. This allows constructing a new stack frame for the > child process to make it seamlessly flow to ret_from_fork without an extra >

Re: [PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-19 Thread Andy Lutomirski
On Sat, Jun 18, 2016 at 1:56 PM, Brian Gerst wrote: > Move the low-level context switch code to an out-of-line asm stub instead of > using complex inline asm. This allows constructing a new stack frame for the > child process to make it seamlessly flow to ret_from_fork without

Re: [PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-19 Thread Andy Lutomirski
On Sat, Jun 18, 2016 at 1:56 PM, Brian Gerst wrote: > Move the low-level context switch code to an out-of-line asm stub instead of > using complex inline asm. This allows constructing a new stack frame for the > child process to make it seamlessly flow to ret_from_fork without an extra > test

[PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-18 Thread Brian Gerst
Move the low-level context switch code to an out-of-line asm stub instead of using complex inline asm. This allows constructing a new stack frame for the child process to make it seamlessly flow to ret_from_fork without an extra test and branch in __switch_to(). It also improves code generation

[PATCH v2 4/6] x86: Rewrite switch_to() code

2016-06-18 Thread Brian Gerst
Move the low-level context switch code to an out-of-line asm stub instead of using complex inline asm. This allows constructing a new stack frame for the child process to make it seamlessly flow to ret_from_fork without an extra test and branch in __switch_to(). It also improves code generation