OSDN Git Service

KVM: selftests: aarch64: Add virt_get_pte_hva() library function
authorRicardo Koller <ricarkol@google.com>
Mon, 17 Oct 2022 19:58:22 +0000 (19:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Nov 2022 19:10:27 +0000 (19:10 +0000)
commit228f324dc718f702e8777164c4e2e7426824fb13
treefe655e0fbcba8e328dca90673090f4540ad2e7f8
parenta93871d0ea9fd59fb5eb783619334183d7f07f51
KVM: selftests: aarch64: Add virt_get_pte_hva() library function

Add a library function to get the PTE (a host virtual address) of a
given GVA.  This will be used in a future commit by a test to clear and
check the access flag of a particular page.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221017195834.2295901-3-ricarkol@google.com
tools/testing/selftests/kvm/include/aarch64/processor.h
tools/testing/selftests/kvm/lib/aarch64/processor.c