]> 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)
commit5242ca3644d0d78d95e96bbe88916a33cec99479
tree70dbb40d24460ea9daa00141e9161fe38c76efc8
parent197a90842e96ce878c0304cee0b8653ca4c6544c
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