KVM: selftests: add shmem backing source type
authorAxel Rasmussen <axelrasmussen@google.com>
Wed, 19 May 2021 20:03:36 +0000 (13:03 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 May 2021 11:45:56 +0000 (07:45 -0400)
commitc9befd5958fdf8913db69049d47b6ac1d970af03
tree6528395627ddf31b80d55b981b2088e106ed3c4f
parentb3784bc28ccc0d9b44d265a1d947c8766295ba00
KVM: selftests: add shmem backing source type

This lets us run the demand paging test on top of a shmem-backed area.
In follow-up commits, we'll 1) leverage this new capability to create an
alias mapping, and then 2) use the alias mapping to exercise UFFD minor
faults.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Message-Id: <20210519200339.829146-8-axelrasmussen@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/test_util.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/test_util.c