diff options
author | Ryan Roberts <[email protected]> | 2023-03-08 11:09:47 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2023-03-30 19:27:56 +0100 |
commit | e659babfc5a693553cf9473470840464f0ed5d77 (patch) | |
tree | 9d1deba2e214c6c43766231ad0169ee1543e59a0 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | a2bed39057b434c4fd816005d1b950fefc61569d (diff) |
KVM: selftests: arm64: Fix pte encode/decode for PA bits > 48
The high bits [51:48] of a physical address should appear at [15:12] in
a 64K pte, not at [51:48] as was previously being programmed. Fix this
with new helper functions that do the conversion correctly. This also
sets us up nicely for adding LPA2 encodings in future.
Fixes: 7a6629ef746d ("kvm: selftests: add virt mem support for aarch64")
Signed-off-by: Ryan Roberts <[email protected]>
Reviewed-by: Oliver Upton <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions