diff options
author | Steve Capper <steve.capper@arm.com> | 2019-08-07 18:55:18 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-09 13:17:21 +0300 |
commit | 5383cc6efed13784ddb3cff2cc183b6b8c50c8db (patch) | |
tree | e6a050f886096231108a344f6cad53bfa362d169 /arch/arm64/include/asm/kasan.h | |
parent | 90ec95cda91a021d82351c976896a63aa364ebf1 (diff) | |
download | linux-5383cc6efed13784ddb3cff2cc183b6b8c50c8db.tar.xz |
arm64: mm: Introduce vabits_actual
In order to support 52-bit kernel addresses detectable at boot time, one
needs to know the actual VA_BITS detected. A new variable vabits_actual
is introduced in this commit and employed for the KVM hypervisor layout,
KASAN, fault handling and phys-to/from-virt translation where there
would normally be compile time constants.
In order to maintain performance in phys_to_virt, another variable
physvirt_offset is introduced.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/kasan.h')
-rw-r--r-- | arch/arm64/include/asm/kasan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kasan.h b/arch/arm64/include/asm/kasan.h index 10d2add842da..b0dc4abc3589 100644 --- a/arch/arm64/include/asm/kasan.h +++ b/arch/arm64/include/asm/kasan.h @@ -31,7 +31,7 @@ * (1ULL << (64 - KASAN_SHADOW_SCALE_SHIFT)) */ #define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (1UL << ((va) - KASAN_SHADOW_SCALE_SHIFT))) -#define KASAN_SHADOW_START _KASAN_SHADOW_START(VA_BITS) +#define KASAN_SHADOW_START _KASAN_SHADOW_START(vabits_actual) void kasan_init(void); void kasan_copy_shadow(pgd_t *pgdir); |