Skip to content

x86_64, xen: Simplify Xen SYSCALL handling

Andy Lutomirski lkml xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/entry/64: Rearrange SYSCALL entry points for Xen's benefitarch/x86/entry/entry_64.S arch/x86/entry/entry_64_compat.S+20 -100 replies
1/2x86/entry/64: Rearrange SYSCALL entry points for Xen's benefitarch/x86/entry/entry_64.S arch/x86/entry/entry_64_compat.S+20 -100 replies
2/2x86/xen/64: Rearrange the SYSCALL entriesarch/x86/entry/entry_64.S arch/x86/entry/entry_64_compat.S arch/x86/xen/xen-asm_64.S+12 -230 replies
2/2x86/xen/64: Rearrange the SYSCALL entriesarch/x86/entry/entry_64.S arch/x86/entry/entry_64_compat.S arch/x86/xen/xen-asm_64.S+12 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86_64, xen: Simplify Xen SYSCALL handling

Xen's SYSCALL hooks are overcomplicated and add unnecessary places where RSP is user controlled. Simplify it and get rid of those user RSP code paths under Xen.

Tested as an Intel KVM guest. Not tested under Xen or on AMD, both of which are important.

Andy Lutomirski (2):
x86/entry/64: Rearrange SYSCALL entry points for Xen's benefit x86/xen/64: Rearrange the SYSCALL entries

 arch/x86/entry/entry_64.S        | 29 +++++++++++++++--------------
 arch/x86/entry/entry_64_compat.S | 12 +++++++-----
 arch/x86/xen/xen-asm_64.S        | 24 ++++++++++--------------
 3 files changed, 32 insertions(+), 33 deletions(-)
Signature · 1 line
2.4.3