Skip to content

x86/sev: Fixes for SEV-ES Guest Support

Joerg Roedel kvm linux-coco lkml virtualization 7 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 3 repliesApplied
  2. v62 patches 5 repliesSuperseded
  3. v56 patches 5 repliesApplied
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v46 patches5 repliesSuperseded
v37 patches2 repliesApplied
v28 patches4 repliesApplied
v16 patches15 repliesSuperseded

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/2x86/sev: Make sure IRQs are disabled while GHCB is activearch/x86/kernel/sev.c+22 -121 reply
2/2x86/sev: Split up runtime #VC handler for correct state trackingarch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h arch/x86/kernel/sev.c+91 -900 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] x86/sev: Fixes for SEV-ES Guest Support

From: Joerg Roedel <[email protected]>

Hi,

please find here the next iteration of my pending fixes for SEV-ES guest support in Linux. This version addresses the comments I received from Peter on the previous version, in particular:

- Removed IRQ disable/enable calls in the ap-hlt loop code
- Made __sev_get/put_ghcb() noinstr instead of __always_inline and put instrumentation_begin()/end() calls around panic() to fix an objtool warning.
- Split up #DB handling in the #VC handler into a from-user and from-kernel part as well.

The patches are again tested with a kernel with various debugging options enabled, running as an SEV-ES guest.

The previous version of these patches can be found here:

	https://lore.kernel.org/lkml/[email protected]/

Please review.

Thanks,

Joerg

Joerg Roedel (2):
x86/sev: Make sure IRQs are disabled while GHCB is active x86/sev: Split up runtime #VC handler for correct state tracking

 arch/x86/entry/entry_64.S       |   4 +-
 arch/x86/include/asm/idtentry.h |  29 ++---
 arch/x86/kernel/sev.c           | 182 ++++++++++++++++++--------------
 3 files changed, 113 insertions(+), 102 deletions(-)

base-commit: 07570cef5e5c3fcec40f82a9075abb4c1da63319

Signature · 1 line
2.31.1