Skip to content

Commit c758907

Browse files
Lai JiangshanKAGA-KOKO
authored andcommitted
x86/entry/64: Remove unneeded kernel CR3 switching
When native_load_gs_index() fails on .Lgs_change, CR3 must be kernel CR3. No need to switch it. Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200419144049.1906-2-laijs@linux.alibaba.com
1 parent 26fa126 commit c758907

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/x86/entry/entry_64.S‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,6 @@ SYM_CODE_START_LOCAL(error_entry)
13341334
*/
13351335
SWAPGS
13361336
FENCE_SWAPGS_USER_ENTRY
1337-
SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
13381337
jmp .Lerror_entry_done
13391338

13401339
.Lbstep_iret:

0 commit comments

Comments
 (0)