Skip to content

x86/sev: Fix AP Jump Table handling for SNP guests

Michael Roth lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 3 repliesApplied

Changes in v4 from the cover letter

- Improve commit msg for patch 2 (Tom)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/sev: Add missing __init annotations to SEV init routinesarch/x86/kernel/sev.c arch/x86/realmode/init.c+4 -40 replies
2/2x86/sev: Get the AP jump table address from secrets pagearch/x86/include/asm/sev.h arch/x86/kernel/sev.c drivers/virt/coco/sev-guest/sev-guest.h+87 -590 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchTom Lendacky
1/2
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] x86/sev: Fix AP Jump Table handling for SNP guests

This series is based on tip/master (commit 1912a07f8a)

SNP guests should only retrieve the AP Jump Table address from the secrets page, not via a GHCB request as with SEV-ES guests. This series reworks the handling accordingly, and fixes up some __init annotations for some of the SEV routines touched by that rework.

v4:
- Improve commit msg for patch 2 (Tom)

v3:
- Address missing __init annotations (Boris)

v2:
- add handling for memremap()/ioremap() failures (Boris)
- don't mix function calls with declarations (Boris)

 arch/x86/include/asm/sev.h              | 35 +++++++++++++++++++++++++++++++++++
 arch/x86/kernel/sev.c                   | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
 arch/x86/realmode/init.c                |  2 +-
 drivers/virt/coco/sev-guest/sev-guest.h | 35 -----------------------------------
 4 files changed, 90 insertions(+), 62 deletions(-)