diff options
| author | Suzuki K Poulose <[email protected]> | 2018-09-26 17:32:40 +0100 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2018-10-01 13:50:15 +0100 |
| commit | ce00e3cb4fb496683708db6bfce470e5c7710ddc (patch) | |
| tree | ec128bc6a50edabc67c56e4b1f6904fce4f64676 /tools/perf/scripts/python | |
| parent | 9f98ddd6686cc9469fb73b11ddd403271d65cbdf (diff) | |
arm64: Add a helper for PARange to physical shift conversion
On arm64, ID_AA64MMFR0_EL1.PARange encodes the maximum Physical
Address range supported by the CPU. Add a helper to decode this
to actual physical shift. If we hit an unallocated value, return
the maximum range supported by the kernel.
This will be used by KVM to set the VTCR_EL2.T0SZ, as it
is about to move its place. Having this helper keeps the code
movement cleaner.
Cc: Marc Zyngier <[email protected]>
Cc: James Morse <[email protected]>
Cc: Christoffer Dall <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions