From: Hemanth Selam <hemanth.selam@gmail.com>
To: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Shuah Khan <shuah@kernel.org>
Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/1] KVM: selftests: SEV: Sanity check the launch measurement
Date: Tue, 11 Aug 2026 09:38:57 +0530 [thread overview]
Message-ID: <20260811040858.1984593-1-hemanth.selam@gmail.com> (raw)
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/20260807121308.1885737-1-hemanth.selam@gmail.com/
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(-)
--
2.43.7
next reply other threads:[~2026-08-11 4:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 4:08 Hemanth Selam [this message]
2026-08-11 4:08 ` [PATCH v2 1/1] KVM: selftests: SEV: Sanity check the launch measurement Hemanth Selam
2026-08-26 5:04 ` Hemanth Selam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260811040858.1984593-1-hemanth.selam@gmail.com \
--to=hemanth.selam@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox