Skip to content

x86/sev: Report MSR_AMD64_SEV in SYSFS

Jörg Rödel linux-coco lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/coco: Add CC_ATTR_GUEST_SEVarch/x86/coco/core.c include/linux/cc_platform.h+12 -03 replies
2/3x86/sev: Create /sys/devices/system/cpu/sev/ for all SEV guestsDocumentation/ABI/testing/sysfs-devices-system-cpu arch/x86/coco/sev/core.c+22 -120 replies
3/3x86/coco/sev: Make SEV_STATUS available via SYSFSDocumentation/ABI/testing/sysfs-devices-system-cpu arch/x86/coco/sev/core.c+19 -10 replies

Reviews trailers per patch

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

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

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

Read the v2 thread

Cover letter [PATCH 0/3 v2] x86/sev: Report MSR_AMD64_SEV in SYSFS

From: Joerg Roedel <[email protected]>

Hi,

Here is an updated version of my original patch to report MSR_AMD64_SEV in SYSFS. The intention is to give user-space tooling a way to access the MSR value without needing to expose all MSRs via the msr.ko module.

The patches here are updated to address a Sashiko comment asking why SEV_STATUS is only reported for SEV-SNP guests. The sev_status file is now created for SEV and SEV-ES guests as well.

Please review.

Thanks,

Joerg

Joerg Roedel (3):
x86/coco: Add CC_ATTR_GUEST_SEV
x86/sev: Create /sys/devices/system/cpu/sev/ for all SEV guests x86/coco/sev: Make SEV_STATUS available via SYSFS

 .../ABI/testing/sysfs-devices-system-cpu      |  9 +++--
 arch/x86/coco/core.c                          |  3 ++
 arch/x86/coco/sev/core.c                      | 33 ++++++++++++++++---
 include/linux/cc_platform.h                   |  9 +++++
 4 files changed, 47 insertions(+), 7 deletions(-)
Signature · 1 line
2.53.0