All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/20] Pile o' entry/exit/sp0 changes
@ 2017-11-02  7:58 Andy Lutomirski
  2017-11-02  7:58 ` [PATCH v2 01/20] x86/asm/64: Remove the restore_c_regs_and_iret label Andy Lutomirski
                   ` (19 more replies)
  0 siblings, 20 replies; 48+ messages in thread
From: Andy Lutomirski @ 2017-11-02  7:58 UTC (permalink / raw)
  To: X86 ML
  Cc: Borislav Petkov, linux-kernel, Brian Gerst, Dave Hansen,
	Linus Torvalds, Andy Lutomirski

Hi all-

Here we go again!  I haven't done most of the requested label
renaming, nor have I done Brian's reordering of the SYSCALL return
code, mainly because I want to keep the ball rolling.  As for label
renaming, I'd rather let everyone finish arguing and then rename any
labels at the end.  I personally don't mind longish asm labels.

Changes from v1:
 - Comment improvements.
 - Lots of Reviewed-bys added.
 - Fix vm86 bug.
 - Completely remove RESTORE_..._REGS_... (Linus) -- adds two patches.

Changes from the old RFC version:
 - Rebase
 - Add Juergen's patch
 - Add some assertions
 - Cleanups
 
Andy Lutomirski (19):
  x86/asm/64: Remove the restore_c_regs_and_iret label
  x86/asm/64: Split the iret-to-user and iret-to-kernel paths
  x86/asm/64: Move SWAPGS into the common iret-to-usermode path
  x86/asm/64: Simplify reg restore code in the standard IRET paths
  x86/asm/64: Shrink paranoid_exit_restore and make labels local
  x86/asm/64: Use pop instead of movq in syscall_return_via_sysret
  x86/asm/64: Merge the fast and slow SYSRET paths
  x86/entry/64: Use POP instead of MOV to restore regs on NMI return
  x86/entry/64: Remove the RESTORE_..._REGS infrastructure
  x86/asm/64: De-Xen-ify our NMI code
  x86/asm/32: Pull MSR_IA32_SYSENTER_CS update code out of
    native_load_sp0()
  x86/asm/64: Pass sp0 directly to load_sp0()
  x86/asm: Add task_top_of_stack() to find the top of a task's stack
  x86/xen/64: Clean up SP code in cpu_initialize_context()
  x86/boot/64: Stop initializing TSS.sp0 at boot
  x86/asm/64: Remove all remaining direct thread_struct::sp0 reads
  x86/boot/32: Fix cpu_current_top_of_stack initialization at boot
  x86/asm/64: Remove thread_struct::sp0
  x86/traps: Use a new on_thread_stack() helper to clean up an assertion

Juergen Gross (1):
  xen: add xen nmi trap entry

 arch/x86/entry/calling.h              |  69 +++++------------
 arch/x86/entry/entry_64.S             | 139 ++++++++++++++++++++--------------
 arch/x86/entry/entry_64_compat.S      |   3 +-
 arch/x86/include/asm/compat.h         |   1 +
 arch/x86/include/asm/paravirt.h       |   5 +-
 arch/x86/include/asm/paravirt_types.h |   2 +-
 arch/x86/include/asm/processor.h      |  52 +++++--------
 arch/x86/include/asm/switch_to.h      |  24 ++++++
 arch/x86/include/asm/traps.h          |   2 +-
 arch/x86/kernel/cpu/common.c          |  12 ++-
 arch/x86/kernel/head_64.S             |   2 +-
 arch/x86/kernel/process.c             |   8 +-
 arch/x86/kernel/process_32.c          |   6 +-
 arch/x86/kernel/process_64.c          |   5 +-
 arch/x86/kernel/smpboot.c             |   3 +-
 arch/x86/kernel/traps.c               |   3 +-
 arch/x86/kernel/vm86_32.c             |  20 ++---
 arch/x86/xen/enlighten_pv.c           |   9 +--
 arch/x86/xen/smp_pv.c                 |  17 ++++-
 arch/x86/xen/xen-asm_64.S             |   2 +-
 20 files changed, 208 insertions(+), 176 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2017-11-02 12:53 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02  7:58 [PATCH v2 00/20] Pile o' entry/exit/sp0 changes Andy Lutomirski
2017-11-02  7:58 ` [PATCH v2 01/20] x86/asm/64: Remove the restore_c_regs_and_iret label Andy Lutomirski
2017-11-02 10:49   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:58 ` [PATCH v2 02/20] x86/asm/64: Split the iret-to-user and iret-to-kernel paths Andy Lutomirski
2017-11-02 10:49   ` [tip:x86/asm] x86/entry/64: Split the IRET-to-user and IRET-to-kernel paths tip-bot for Andy Lutomirski
2017-11-02 10:50   ` [PATCH v2 02/20] x86/asm/64: Split the iret-to-user and iret-to-kernel paths Borislav Petkov
2017-11-02 12:09     ` [PATCH] x86/entry/64: Shorten TEST instructions Borislav Petkov
2017-11-02 12:48       ` [tip:x86/asm] " tip-bot for Borislav Petkov
2017-11-02  7:59 ` [PATCH v2 03/20] x86/asm/64: Move SWAPGS into the common iret-to-usermode path Andy Lutomirski
2017-11-02 10:49   ` [tip:x86/asm] x86/entry/64: Move SWAPGS into the common IRET-to-usermode path tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 04/20] x86/asm/64: Simplify reg restore code in the standard IRET paths Andy Lutomirski
2017-11-02 10:50   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 05/20] x86/asm/64: Shrink paranoid_exit_restore and make labels local Andy Lutomirski
2017-11-02 10:50   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 06/20] x86/asm/64: Use pop instead of movq in syscall_return_via_sysret Andy Lutomirski
2017-11-02 10:51   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 07/20] x86/asm/64: Merge the fast and slow SYSRET paths Andy Lutomirski
2017-11-02 10:51   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 08/20] x86/entry/64: Use POP instead of MOV to restore regs on NMI return Andy Lutomirski
2017-11-02 10:51   ` [tip:x86/asm] " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 09/20] x86/entry/64: Remove the RESTORE_..._REGS infrastructure Andy Lutomirski
2017-11-02 10:52   ` [tip:x86/asm] " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 10/20] xen: add xen nmi trap entry Andy Lutomirski
2017-11-02 10:52   ` [tip:x86/asm] xen, x86/entry/64: Add xen NMI " tip-bot for Juergen Gross
2017-11-02  7:59 ` [PATCH v2 11/20] x86/asm/64: De-Xen-ify our NMI code Andy Lutomirski
2017-11-02 10:53   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 12/20] x86/asm/32: Pull MSR_IA32_SYSENTER_CS update code out of native_load_sp0() Andy Lutomirski
2017-11-02 10:53   ` [tip:x86/asm] x86/entry/32: Pull the " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 13/20] x86/asm/64: Pass sp0 directly to load_sp0() Andy Lutomirski
2017-11-02  9:48   ` Ingo Molnar
2017-11-02  9:53     ` Ingo Molnar
2017-11-02 10:32     ` Andy Lutomirski
2017-11-02 10:53   ` [tip:x86/asm] x86/entry/64: Pass SP0 " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 14/20] x86/asm: Add task_top_of_stack() to find the top of a task's stack Andy Lutomirski
2017-11-02 10:54   ` [tip:x86/asm] x86/entry: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 15/20] x86/xen/64: Clean up SP code in cpu_initialize_context() Andy Lutomirski
2017-11-02  9:56   ` Juergen Gross
2017-11-02 10:54   ` [tip:x86/asm] x86/xen/64, x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 16/20] x86/boot/64: Stop initializing TSS.sp0 at boot Andy Lutomirski
2017-11-02 10:55   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 17/20] x86/asm/64: Remove all remaining direct thread_struct::sp0 reads Andy Lutomirski
2017-11-02 10:55   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 18/20] x86/boot/32: Fix cpu_current_top_of_stack initialization at boot Andy Lutomirski
2017-11-02 10:56   ` [tip:x86/asm] x86/entry/32: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 19/20] x86/asm/64: Remove thread_struct::sp0 Andy Lutomirski
2017-11-02 10:56   ` [tip:x86/asm] x86/entry/64: " tip-bot for Andy Lutomirski
2017-11-02  7:59 ` [PATCH v2 20/20] x86/traps: Use a new on_thread_stack() helper to clean up an assertion Andy Lutomirski
2017-11-02 10:56   ` [tip:x86/asm] " tip-bot for Andy Lutomirski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.