summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/gmap.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2018-07-13 13:28:21 +0300
committerJanosch Frank <frankja@linux.ibm.com>2018-07-30 13:20:17 +0300
commit7c4b13a7c042fd6b71dc48d291208f8a97fad333 (patch)
treeeb4870d99b682bcebbcc8de5bd29cae061381912 /arch/s390/include/asm/gmap.h
parent58b7e200d2f1f9af9ef69a401a877791837a1c87 (diff)
downloadlinux-7c4b13a7c042fd6b71dc48d291208f8a97fad333.tar.xz
s390/mm: Add gmap pmd notification bit setting
Like for ptes, we also need invalidation notification for pmds, to make sure the guest lowcore pages are always accessible and later addition of shadowed pmds. With PMDs we do not have PGSTEs or some other bits we could use in the host PMD. Instead we pick one of the free bits in the gmap PMD. Every time a host pmd will be invalidated, we will check if the respective gmap PMD has the bit set and in that case fire up the notifier. Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/gmap.h')
-rw-r--r--arch/s390/include/asm/gmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/gmap.h b/arch/s390/include/asm/gmap.h
index c1bc5633fc6e..276268b48aff 100644
--- a/arch/s390/include/asm/gmap.h
+++ b/arch/s390/include/asm/gmap.h
@@ -13,6 +13,9 @@
#define GMAP_NOTIFY_SHADOW 0x2
#define GMAP_NOTIFY_MPROT 0x1
+/* Status bits only for huge segment entries */
+#define _SEGMENT_ENTRY_GMAP_IN 0x8000 /* invalidation notify bit */
+
/**
* struct gmap_struct - guest address space
* @list: list head for the mm->context gmap list