Skip to content
Commit e15502f1 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

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: 7a6629ef ("kvm: selftests: add virt mem support for aarch64")

Signed-off-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent 86c5ddb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment