summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorDominik Dingel <dingel@linux.vnet.ibm.com>2014-01-14 15:02:11 +0100
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-04-22 09:36:23 +0200
commit65eef33550f68e9a7f7d2dc64da94fb6cb85be2c (patch)
tree7a1d6447ee180fcf2f648040ac0b4439dbd908d5 /arch/s390/include/asm/mmu_context.h
parent0f689a33ad17845363acdc6d52783befd6ad116c (diff)
downloadblackbird-op-linux-65eef33550f68e9a7f7d2dc64da94fb6cb85be2c.tar.gz
blackbird-op-linux-65eef33550f68e9a7f7d2dc64da94fb6cb85be2c.zip
KVM: s390: Adding skey bit to mmu context
For lazy storage key handling, we need a mechanism to track if the process ever issued a storage key operation. This patch adds the basic infrastructure for making the storage key handling optional, but still leaves it enabled for now by default. Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/mmu_context.h')
-rw-r--r--arch/s390/include/asm/mmu_context.h1
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 71be346d0e3c..05925ead0748 100644
--- a/arch/s390/include/asm/mmu_context.h
+++ b/arch/s390/include/asm/mmu_context.h
@@ -23,6 +23,7 @@ static inline int init_new_context(struct task_struct *tsk,
mm->context.asce_bits |= _ASCE_TYPE_REGION3;
#endif
mm->context.has_pgste = 0;
+ mm->context.use_skey = 1;
mm->context.asce_limit = STACK_TOP_MAX;
crst_table_init((unsigned long *) mm->pgd, pgd_entry_type(mm));
return 0;
OpenPOWER on IntegriCloud