diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2018-07-13 11:28:37 +0100 |
---|---|---|
committer | Janosch Frank <frankja@linux.ibm.com> | 2018-07-30 23:13:38 +0200 |
commit | a9e00d8349c98e0973c8b0d671d69e838f7b5bcc (patch) | |
tree | b6c9a4374f72c0f6ccea510dc8fc1f8c74d43d2d /arch/s390/include/asm/mmu_context.h | |
parent | 7d735b9ae82d073e23ff7d2648e0aa8056049d16 (diff) | |
download | linux-stable-a9e00d8349c98e0973c8b0d671d69e838f7b5bcc.tar.gz linux-stable-a9e00d8349c98e0973c8b0d671d69e838f7b5bcc.tar.bz2 linux-stable-a9e00d8349c98e0973c8b0d671d69e838f7b5bcc.zip |
s390/mm: Add huge page gmap linking support
Let's allow huge pmd linking when enabled through the
KVM_CAP_S390_HPAGE_1M capability. Also we can now restrict gmap
invalidation and notification to the cases where the capability has
been activated and save some cycles when that's not the case.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/mmu_context.h')
-rw-r--r-- | arch/s390/include/asm/mmu_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index d16bc79c30bb..0717ee76885d 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h @@ -32,6 +32,7 @@ static inline int init_new_context(struct task_struct *tsk, mm->context.has_pgste = 0; mm->context.uses_skeys = 0; mm->context.uses_cmm = 0; + mm->context.allow_gmap_hpage_1m = 0; #endif switch (mm->context.asce_limit) { case _REGION2_SIZE: |