diff options
| author | Marc Zyngier <maz@kernel.org> | 2021-12-27 12:48:06 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2021-12-28 11:04:20 +0000 |
| commit | 0303ffdb9ecffac4654b16bbf69ba84d131eb8b7 (patch) | |
| tree | a21976a88e6d42ca0047d2d062d9dfaa87081ce3 /tools/testing/selftests/kvm/include | |
| parent | 357c628e1248dd53f5c43a768246a83478a7f489 (diff) | |
| download | linux-0303ffdb9ecffac4654b16bbf69ba84d131eb8b7.tar.bz2 | |
KVM: selftests: arm64: Check for supported page sizes
Just as arm64 implemenations don't necessary support all IPA
ranges, they don't all support the same page sizes either. Fun.
Create a dummy VM to snapshot the page sizes supported by the
host, and filter the supported modes.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Link: https://lore.kernel.org/r/20211227124809.1335409-4-maz@kernel.org
Diffstat (limited to 'tools/testing/selftests/kvm/include')
| -rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/processor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h index 27d8e1bb5b36..8f9f46979a00 100644 --- a/tools/testing/selftests/kvm/include/aarch64/processor.h +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h @@ -113,6 +113,9 @@ enum { #define ESR_EC_WP_CURRENT 0x35 #define ESR_EC_BRK_INS 0x3c +void aarch64_get_supported_page_sizes(uint32_t ipa, + bool *ps4k, bool *ps16k, bool *ps64k); + void vm_init_descriptor_tables(struct kvm_vm *vm); void vcpu_init_descriptor_tables(struct kvm_vm *vm, uint32_t vcpuid); |