[POC PATCH 0/6] guest_memfd in-place conversion selftests for SNP
From: Ackerley Tng
Date: Thu Mar 26 2026 - 19:37:08 EST
With these POC patches, I was able to test the set memory
attributes/conversion ioctls with SNP. The content policies work :)
Ackerley Tng (6):
KVM: selftests: Initialize guest_memfd with INIT_SHARED
KVM: selftests: Call snp_launch_update_data() providing copy of memory
KVM: selftests: Make guest_code_xsave more friendly
KVM: selftests: Allow specifying CoCo-privateness while mapping a page
KVM: selftests: Test conversions for SNP
KVM: selftests: Test content modes ZERO and PRESERVE for SNP
.../selftests/kvm/include/x86/processor.h | 2 +
tools/testing/selftests/kvm/lib/kvm_util.c | 12 +-
.../testing/selftests/kvm/lib/x86/processor.c | 13 +-
tools/testing/selftests/kvm/lib/x86/sev.c | 35 ++-
.../selftests/kvm/x86/sev_smoke_test.c | 255 +++++++++++++++++-
5 files changed, 295 insertions(+), 22 deletions(-)
--
2.53.0.1018.g2bb0e51243-goog