Re: [PATCH v9 10/14] KVM: selftests: aarch64: Add aarch64/page_fault_test

2022-10-14 Thread Sean Christopherson
On Tue, Oct 11, 2022, Ricardo Koller wrote: > +/* Returns true to continue the test, and false if it should be skipped. */ > +static bool punch_hole_in_backing_store(struct kvm_vm *vm, > + struct userspace_mem_region *region) > +{ > + void *hva = (void

[PATCH v9 10/14] KVM: selftests: aarch64: Add aarch64/page_fault_test

2022-10-10 Thread Ricardo Koller
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