KVM: selftests: Force GUEST_MEMFD flag for SNP VM type
authorPratik R. Sampat <prsampat@amd.com>
Wed, 5 Mar 2025 22:59:58 +0000 (16:59 -0600)
committerSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 20:05:30 +0000 (13:05 -0700)
commitb73a30cd9caa196459ef66099662b3e5feb8571f
tree9c0bb0f96e329f8bafcac99caa72de1db4f2f3e8
parent3bf3e0a521237681d5353cca741474aa8c4e16de
KVM: selftests: Force GUEST_MEMFD flag for SNP VM type

Force the SEV-SNP VM type to set the KVM_MEM_GUEST_MEMFD flag for the
creation of private memslots.

Signed-off-by: Pratik R. Sampat <prsampat@amd.com>
Link: https://lore.kernel.org/r/20250305230000.231025-9-prsampat@amd.com
[sean: add a comment, don't break non-x86]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/kvm_util.c