Skip to content

x86/sev-es: SEV-ES Fixes for v5.12

Joerg Roedel kvm lkml stable virtualization 2 versions – Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied
  2. v13 patches 9 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5x86/sev-es: Introduce ip_within_syscall_gap() helperarch/x86/entry/entry_64_compat.S arch/x86/include/asm/proto.h arch/x86/include/asm/ptrace.h +1 more+19 -20 replies
2/5x86/sev-es: Check if regs->sp is trusted before adjusting #VC IST stackarch/x86/kernel/sev-es.c+12 -20 replies
3/5x86/sev-es: Optimize __sev_es_ist_enter() for better readabilityarch/x86/kernel/sev-es.c+24 -120 replies
4/5x86/sev-es: Correctly track IRQ states in runtime #VC handlerarch/x86/kernel/sev-es.c+4 -20 replies
5/5x86/sev-es: Use __copy_from_user_inatomic()arch/x86/include/asm/insn-eval.h arch/x86/kernel/sev-es.c arch/x86/lib/insn-eval.c+55 -150 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/5 v2] x86/sev-es: SEV-ES Fixes for v5.12

From: Joerg Roedel <[email protected]>

Hi,

here are a couple of fixes for 5.12 in the SEV-ES guest support code. Patches 1-3 have in a similar form already been posted, so this is v2. The last two patches are new an arose from me running an SEV-ES guest with more debugging features and instrumentation enabled. I changed the first patches according to the review comments I received.

Please review.

Thanks,

Joerg

Joerg Roedel (5):
x86/sev-es: Introduce ip_within_syscall_gap() helper x86/sev-es: Check if regs->sp is trusted before adjusting #VC IST
stack
x86/sev-es: Optimize __sev_es_ist_enter() for better readability x86/sev-es: Correctly track IRQ states in runtime #VC handler x86/sev-es: Use __copy_from_user_inatomic()

 arch/x86/entry/entry_64_compat.S |  2 +
 arch/x86/include/asm/insn-eval.h |  2 +
 arch/x86/include/asm/proto.h     |  1 +
 arch/x86/include/asm/ptrace.h    | 15 ++++++++
 arch/x86/kernel/sev-es.c         | 58 ++++++++++++++++++++--------
 arch/x86/kernel/traps.c          |  3 +-
 arch/x86/lib/insn-eval.c         | 66 +++++++++++++++++++++++++-------
 7 files changed, 114 insertions(+), 33 deletions(-)
Signature · 6 lines
2.30.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization