]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Add a basic SEV-SNP smoke test
authorPratik R. Sampat <prsampat@amd.com>
Wed, 5 Mar 2025 23:00:00 +0000 (17:00 -0600)
committerSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 20:05:32 +0000 (13:05 -0700)
commitada014f5fc676bf16327c252587e0c856234bc13
tree373f9a9113d50e6e7c617388f52b6bb80a7fbcda
parenta5d55f783fb73ad06d2e4358b24d6c2a75991350
KVM: selftests: Add a basic SEV-SNP smoke test

Extend sev_smoke_test to also run a minimal SEV-SNP smoke test that
initializes and sets up private memory regions required to run a simple
SEV-SNP guest.

Similar to its SEV-ES smoke test counterpart, this also does not
support GHCB and ucall yet and uses the GHCB MSR protocol to trigger an
exit of the type KVM_EXIT_SYSTEM_EVENT.

Signed-off-by: Pratik R. Sampat <prsampat@amd.com>
Link: https://lore.kernel.org/r/20250305230000.231025-11-prsampat@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/sev_smoke_test.c