Home
last modified time | relevance | path

Searched hist:e659babfc5a693553cf9473470840464f0ed5d77 (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.cdiff e659babfc5a693553cf9473470840464f0ed5d77 Wed Mar 08 12:09:47 CET 2023 Ryan Roberts <ryan.roberts@arm.com> 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 <ryan.roberts@arm.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230308110948.1820163-3-ryan.roberts@arm.com