summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/gmap.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2018-07-13 12:28:18 +0200
committerJanosch Frank <frankja@linux.ibm.com>2018-07-30 12:20:17 +0200
commit2c46e974dd8b5316e65637af0ff6d4bc78554b2e (patch)
tree2f15ffca17af4db7af79579892e155d6a5fc4342 /arch/s390/include/asm/gmap.h
parents390/mm: Make gmap_protect_range more modular (diff)
downloadlinux-2c46e974dd8b5316e65637af0ff6d4bc78554b2e.tar.xz
linux-2c46e974dd8b5316e65637af0ff6d4bc78554b2e.zip
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>
Diffstat (limited to 'arch/s390/include/asm/gmap.h')
-rw-r--r--arch/s390/include/asm/gmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/gmap.h b/arch/s390/include/asm/gmap.h
index e07cce88dfb0..c1bc5633fc6e 100644
--- a/arch/s390/include/asm/gmap.h
+++ b/arch/s390/include/asm/gmap.h
@@ -9,6 +9,10 @@
#ifndef _ASM_S390_GMAP_H
#define _ASM_S390_GMAP_H
+/* Generic bits for GMAP notification on DAT table entry changes. */
+#define GMAP_NOTIFY_SHADOW 0x2
+#define GMAP_NOTIFY_MPROT 0x1
+
/**
* struct gmap_struct - guest address space
* @list: list head for the mm->context gmap list