[PATCH 06/35] x86/entry/32: Split off return-to-kernel path

2018-04-16 Thread Joerg Roedel
From: Joerg Roedel Use a separate return path when we know we are returning to the kernel. This allows us to put the PTI cr3-switch and the switch to the entry-stack into the return-to-user path without further checking. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 11 --

[PATCH 06/35] x86/entry/32: Split off return-to-kernel path

2018-03-16 Thread Joerg Roedel
From: Joerg Roedel Use a separate return path when we know we are returning to the kernel. This allows us to put the PTI cr3-switch and the switch to the entry-stack into the return-to-user path without further checking. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 11 --