Skip to content

guest_memfd in-place conversion selftests for SNP

Ackerley Tng b4-sent kvm linux-coco linux-doc linux-kselftest linux-mm linux-trace-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: selftests: Initialize guest_memfd with INIT_SHAREDtools/testing/selftests/kvm/lib/kvm_util.c+11 -10 replies
2/5KVM: selftests: Use guest_memfd memory contents in-place for SNP launch updatetools/testing/selftests/kvm/lib/x86/sev.c+1 -20 replies
3/5KVM: selftests: Make guest_code_xsave more friendlytools/testing/selftests/kvm/x86/sev_smoke_test.c+17 -70 replies
4/5KVM: selftests: Allow specifying CoCo-privateness while mapping a pagetools/testing/selftests/kvm/include/x86/processor.h tools/testing/selftests/kvm/lib/x86/processor.c+12 -30 replies
5/5KVM: selftests: Test conversions for SNPtools/testing/selftests/kvm/x86/sev_smoke_test.c+193 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [POC PATCH 0/5] guest_memfd in-place conversion selftests for SNP

With these POC patches, I was able to test the set memory attributes/conversion ioctls with SNP.

After allowing src_addr to be NULL, SNP_LAUNCH_UPDATE can accept NULL for source address and the SNP VM runs fine. :)

Ackerley Tng (5):
KVM: selftests: Initialize guest_memfd with INIT_SHARED
KVM: selftests: Use guest_memfd memory contents in-place for SNP
launch update
KVM: selftests: Make guest_code_xsave more friendly
KVM: selftests: Allow specifying CoCo-privateness while mapping a page
KVM: selftests: Test conversions 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     |   3 +-
 .../selftests/kvm/x86/sev_smoke_test.c        | 222 +++++++++++++++++-
 5 files changed, 234 insertions(+), 18 deletions(-)

--
2.54.0.563.g4f69b47b94-goog