summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-09-13 16:09:52 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-09 11:21:34 +0200
commit12e55fa1944d2f2f15c580a94eda80cb7623f89d (patch)
tree533880bb716fbf6584d4d01d0f76594204befa56 /arch/s390
parent296352397db68313a189e65a3513960a2c844632 (diff)
downloadlinux-12e55fa1944d2f2f15c580a94eda80cb7623f89d.tar.bz2
s390/kasan: optimize kasan vmemmap allocation
Kasan implementation now supports memory hotplug operations. For that reason regions of initially standby memory are now skipped from shadow mapping and are mapped/unmapped dynamically upon bringing memory online/offline. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/mm/kasan_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/mm/kasan_init.c b/arch/s390/mm/kasan_init.c
index 6b0574340f7f..5b253247bc97 100644
--- a/arch/s390/mm/kasan_init.c
+++ b/arch/s390/mm/kasan_init.c
@@ -331,7 +331,8 @@ void __init kasan_early_init(void)
kasan_early_vmemmap_populate(__sha(0), __sha(memsize), POPULATE_MAP);
if (IS_ENABLED(CONFIG_MODULES))
untracked_mem_end = vmax - MODULES_LEN;
- kasan_early_vmemmap_populate(__sha(memsize), __sha(untracked_mem_end),
+ kasan_early_vmemmap_populate(__sha(max_physmem_end),
+ __sha(untracked_mem_end),
POPULATE_ZERO_SHADOW);
/* memory allocated for identity mapping structs will be freed later */
pgalloc_freeable = pgalloc_pos;