]> www.infradead.org Git - users/hch/configfs.git/commit
KVM: selftests: Expand set_memory_region_test to validate guest_memfd()
authorChao Peng <chao.p.peng@linux.intel.com>
Fri, 27 Oct 2023 18:22:15 +0000 (11:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Nov 2023 13:01:08 +0000 (08:01 -0500)
commit2feabb855df8f0889146c2e951307ba477d1f37b
tree56967d8063050b7b8a47a244fb21dd33c69b79d5
parente6f4f345b259cad178bad7e40a9d4b65cf195067
KVM: selftests: Expand set_memory_region_test to validate guest_memfd()

Expand set_memory_region_test to exercise various positive and negative
testcases for private memory.

 - Non-guest_memfd() file descriptor for private memory
 - guest_memfd() from different VM
 - Overlapping bindings
 - Unaligned bindings

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Co-developed-by: Ackerley Tng <ackerleytng@google.com>
Signed-off-by: Ackerley Tng <ackerleytng@google.com>
[sean: trim the testcases to remove duplicate coverage]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20231027182217.3615211-34-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/set_memory_region_test.c