Skip to content

x86/sev: Carve out the SVSM support code

Borislav Petkov linux-coco lkml 1 version 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

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/sev: Move the internal headerarch/x86/boot/startup/sev-startup.c arch/x86/coco/sev/core.c arch/x86/coco/sev/internal.h +2 more+8 -42 replies
2/3x86/sev: Add internal header guardsarch/x86/coco/sev/internal.h+3 -00 replies
3/3x86/sev: Carve out the SVSM code into a separate compilation unitarch/x86/coco/sev/Makefile arch/x86/coco/sev/core.c arch/x86/coco/sev/internal.h +1 more+392 -3780 replies

Reviews trailers per patch

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

PatchTom Lendacky
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] x86/sev: Carve out the SVSM support code

From: "Borislav Petkov (AMD)" <[email protected]>

Hi,

I've been meaning to do this for a while now but didn't have a good idea how to do it nicely. Using the internal header makes it almost trivial.

Thx.

Borislav Petkov (AMD) (3):
x86/sev: Move the internal header
x86/sev: Add internal header guards
x86/sev: Carve out the SVSM code into a separate compilation unit

 arch/x86/boot/startup/sev-startup.c           |   3 +-
 arch/x86/coco/sev/Makefile                    |   2 +-
 arch/x86/coco/sev/core.c                      | 380 +-----------------
 .../sev-internal.h => coco/sev/internal.h}    |  32 ++
 arch/x86/coco/sev/noinstr.c                   |   3 +-
 arch/x86/coco/sev/svsm.c                      | 362 +++++++++++++++++
 arch/x86/coco/sev/vc-handle.c                 |   3 +-
 7 files changed, 403 insertions(+), 382 deletions(-)
 rename arch/x86/{include/asm/sev-internal.h => coco/sev/internal.h} (75%)
 create mode 100644 arch/x86/coco/sev/svsm.c
Signature · 1 line
2.51.0