]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Add library support for interacting with SNP
authorPratik R. Sampat <prsampat@amd.com>
Wed, 5 Mar 2025 22:59:57 +0000 (16:59 -0600)
committerSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 19:32:33 +0000 (12:32 -0700)
commit3bf3e0a521237681d5353cca741474aa8c4e16de
tree5471ff0a5e8b213ebea494f71475875f0d79a2d0
parent4a4e1e8e92eb99611c8988d563e1781b067408b5
KVM: selftests: Add library support for interacting with SNP

Extend the SEV library to include support for SNP ioctl() wrappers,
which aid in launching and interacting with a SEV-SNP guest.

Signed-off-by: Pratik R. Sampat <prsampat@amd.com>
Link: https://lore.kernel.org/r/20250305230000.231025-8-prsampat@amd.com
[sean: use BIT()]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/uapi/asm/kvm.h
tools/arch/x86/include/uapi/asm/kvm.h
tools/testing/selftests/kvm/include/x86/sev.h
tools/testing/selftests/kvm/lib/x86/sev.c