KVM: selftests: aarch64: Add userfaultfd tests into page_fault_test
authorRicardo Koller <ricarkol@google.com>
Mon, 17 Oct 2022 19:58:31 +0000 (19:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Nov 2022 19:10:27 +0000 (19:10 +0000)
commit3b1d915659c64dce079f4926a648f2271faea008
tree1eaecfbdf8f5d58f98b619ab22736ab369436d4f
parent35c5810157124cb71aaa939cd2d5508192714877
KVM: selftests: aarch64: Add userfaultfd tests into page_fault_test

Add some userfaultfd tests into page_fault_test. Punch holes into the
data and/or page-table memslots, perform some accesses, and check that
the faults are taken (or not taken) when expected.

Signed-off-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221017195834.2295901-12-ricarkol@google.com
tools/testing/selftests/kvm/aarch64/page_fault_test.c