]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46c0bf10b137fa5a602006228dc6d359614b7442
tree6528395627ddf31b80d55b981b2088e106ed3c4f
parent6c7173eb9aa8d45c664949e2f10ea9ae42eaa5d8
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