KVM: selftests: aarch64: Add dirty logging tests into page_fault_test
authorRicardo Koller <ricarkol@google.com>
Mon, 17 Oct 2022 19:58:32 +0000 (19:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Nov 2022 19:10:27 +0000 (19:10 +0000)
commita4edf25b3e25656c69cbc768d1c704868e4a616f
treea78616dc2b14cf9a374cd604aa2682cd36248fe0
parent3b1d915659c64dce079f4926a648f2271faea008
KVM: selftests: aarch64: Add dirty logging tests into page_fault_test

Add some dirty logging tests into page_fault_test. Mark the data and/or
page-table memory regions for dirty logging, perform some accesses, and
check that the dirty log bits are set or clean 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-13-ricarkol@google.com
tools/testing/selftests/kvm/aarch64/page_fault_test.c