KVM: selftests: arm64: Add support for various modes with 16kB page size
authorMarc Zyngier <maz@kernel.org>
Mon, 27 Dec 2021 12:48:09 +0000 (12:48 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 11:04:20 +0000 (11:04 +0000)
commitaa674de1dc3d2bdf2c67ad195dc81977972323c6
treed03d1829c0c73a032e6330aa4584dceb58c41d9e
parente7f58a6bd28bfd2e4f60312abf48f07de2c4121c
KVM: selftests: arm64: Add support for various modes with 16kB page size

The 16kB page size is not a popular choice, due to only a few CPUs
actually implementing support for it. However, it can lead to some
interesting performance improvements given the right uarch choices.

Add support for this page size for various PA/VA combinations.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Link: https://lore.kernel.org/r/20211227124809.1335409-7-maz@kernel.org
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/lib/guest_modes.c
tools/testing/selftests/kvm/lib/kvm_util.c