Skip to content

Support for SEV-ES guest shadow stack

John Allen kvm lkml 4 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 2 repliesApplied
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Use CPUID_LEAF_XSTATE instead of open coding 0xd.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/boot: Move boot_*msr helpers to asm/shared/msr.harch/x86/boot/compressed/sev.c arch/x86/boot/compressed/sev.h arch/x86/boot/cpucheck.c +2 more+30 -400 replies
2/2x86/sev-es: Include XSS value in GHCB CPUID requestarch/x86/coco/sev/vc-shared.c arch/x86/include/asm/svm.h+14 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTom Lendacky
1/2R-b
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] Support for SEV-ES guest shadow stack

For shadow stack support in SVM when using SEV-ES, the guest kernel needs to save XSS to the GHCB in order for the hypervisor to determine the XSAVES save area size.
---
v4:
- Use CPUID_LEAF_XSTATE instead of open coding 0xd.
v3:
- Only CPUID.0xD.1 consumes XSS. Limit including XSS in GHCB for this case.
v2:
- Update changelog for patch 2/2

John Allen (2):
x86/boot: Move boot_*msr helpers to asm/shared/msr.h x86/sev-es: Include XSS value in GHCB CPUID request

 arch/x86/boot/compressed/sev.c    |  7 ++++---
 arch/x86/boot/compressed/sev.h    |  6 +++---
 arch/x86/boot/cpucheck.c          | 16 ++++++++--------
 arch/x86/boot/msr.h               | 26 --------------------------
 arch/x86/coco/sev/vc-shared.c     | 13 +++++++++++++
 arch/x86/include/asm/shared/msr.h | 15 +++++++++++++++
 arch/x86/include/asm/svm.h        |  1 +
 7 files changed, 44 insertions(+), 40 deletions(-)
 delete mode 100644 arch/x86/boot/msr.h
Signature · 1 line
2.47.3