Skip to content

KVM: selftests: SEV: Sanity check the launch measurement

Hemanth Selam kvm linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1KVM: selftests: SEV: Sanity check the launch measurementtools/testing/selftests/kvm/include/x86/sev.h tools/testing/selftests/kvm/lib/x86/sev.c tools/testing/selftests/kvm/x86/sev_smoke_test.c+52 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] KVM: selftests: SEV: Sanity check the launch measurement

This replaces the TODO in test_sev() with a sanity check of the launch measurement returned by KVM_SEV_LAUNCH_MEASURE. A full attestation-style validation isn't possible from the selftest because userspace does not possess the transport keys the PSP uses to derive the measurement. The check therefore verifies the firmware-reported blob length and that the measurement and the nonce are non-zero, with the blob layout described by a struct so the buffer and field sizes derive from a single definition.

No functional changes from v1; this posting only adds a cover letter.

v1: https://lore.kernel.org/all/[email protected]/

Hemanth Selam (1):
KVM: selftests: SEV: Sanity check the launch measurement

 tools/testing/selftests/kvm/include/x86/sev.h | 12 +++++++
 tools/testing/selftests/kvm/lib/x86/sev.c     | 11 +++++--
 .../selftests/kvm/x86/sev_smoke_test.c        | 33 +++++++++++++++++--
 3 files changed, 52 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.7