s390/mm: Clear skeys for newly mapped huge guest pmds
commit3afdfca69870963ae01e280732a5ee493a2fcbb3
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 13 Jul 2018 10:28:26 +0000 (13 11:28 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 30 Jul 2018 10:20:18 +0000 (30 11:20 +0100)
tree70dbb40d24460ea9daa00141e9161fe38c76efc8
parent964c2c05c9f3095a18387a57b289cf06de637521
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