s390/mm: Abstract gmap notify bit setting
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 13 Jul 2018 10:28:18 +0000 (11:28 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 30 Jul 2018 10:20:17 +0000 (11:20 +0100)
commit2c46e974dd8b5316e65637af0ff6d4bc78554b2e
tree2f15ffca17af4db7af79579892e155d6a5fc4342
parent5a045bb9c44caebcf4e88bf78343166596c0014b
s390/mm: Abstract gmap notify bit setting

Currently we use the software PGSTE bits PGSTE_IN_BIT and
PGSTE_VSIE_BIT to notify before an invalidation occurs on a prefix
page or a VSIE page respectively. Both bits are pgste specific, but
are used when protecting a memory range.

Let's introduce abstract GMAP_NOTIFY_* bits that will be realized into
the respective bits when gmap DAT table entries are protected.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
arch/s390/include/asm/gmap.h
arch/s390/mm/gmap.c