Skip to content

Commit 35c5810

Browse files
Ricardo KollerMarc Zyngier
authored andcommitted
KVM: selftests: aarch64: Add aarch64/page_fault_test
Add a new test for stage 2 faults when using different combinations of guest accesses (e.g., write, S1PTW), backing source type (e.g., anon) and types of faults (e.g., read on hugetlbfs with a hole). The next commits will add different handling methods and more faults (e.g., uffd and dirty logging). This first commit starts by adding two sanity checks for all types of accesses: AF setting by the hw, and accessing memslots with holes. Signed-off-by: Ricardo Koller <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1446e33 commit 35c5810

File tree

4 files changed

+604
-0
lines changed

4 files changed

+604
-0
lines changed

tools/testing/selftests/kvm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/aarch64/debug-exceptions
55
/aarch64/get-reg-list
66
/aarch64/hypercalls
7+
/aarch64/page_fault_test
78
/aarch64/psci_test
89
/aarch64/vcpu_width_config
910
/aarch64/vgic_init

tools/testing/selftests/kvm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ TEST_GEN_PROGS_aarch64 += aarch64/arch_timer
153153
TEST_GEN_PROGS_aarch64 += aarch64/debug-exceptions
154154
TEST_GEN_PROGS_aarch64 += aarch64/get-reg-list
155155
TEST_GEN_PROGS_aarch64 += aarch64/hypercalls
156+
TEST_GEN_PROGS_aarch64 += aarch64/page_fault_test
156157
TEST_GEN_PROGS_aarch64 += aarch64/psci_test
157158
TEST_GEN_PROGS_aarch64 += aarch64/vcpu_width_config
158159
TEST_GEN_PROGS_aarch64 += aarch64/vgic_init

0 commit comments

Comments
 (0)