summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorSuzuki K Poulose <suzuki.poulose@arm.com>2018-09-26 17:32:47 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2018-10-01 13:50:31 +0100
commit595583306434caafac4a71102dca5a8d32d1a769 (patch)
tree1102504c273d5a050d3238b11d3c3198b9c44a41 /arch/nios2
parent61fa5a867b6521b4c55865b88bf70c93078d0cf8 (diff)
kvm: arm64: Dynamic configuration of VTTBR mask
On arm64 VTTBR_EL2:BADDR holds the base address for the stage2 translation table. The Arm ARM mandates that the bits BADDR[x-1:0] should be 0, where 'x' is defined for a given IPA Size and the number of levels for a translation granule size. It is defined using some magical constants. This patch is a reverse engineered implementation to calculate the 'x' at runtime for a given ipa and number of page table levels. See patch for more details. Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Christoffer Dall <cdall@kernel.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions