]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: Clear skeys for newly mapped huge guest pmds
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 13 Jul 2018 10:28:26 +0000 (11:28 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 30 Jul 2018 10:20:18 +0000 (11:20 +0100)
commitb66f32e59646236eece2b9247b38fcf1201fc7c1
tree70dbb40d24460ea9daa00141e9161fe38c76efc8
parent983170d89777e53aa590f0d2d1062818627170e2
s390/mm: Clear skeys for newly mapped huge guest pmds

Similarly to the pte skey handling, where we set the storage key to
the default key for each newly mapped pte, we have to also do that for
huge pmds.

With the PG_arch_1 flag we keep track if the area has already been
cleared of its skeys.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/hugetlb.h
arch/s390/mm/gmap.c
arch/s390/mm/hugetlbpage.c