s390/kvm: Add use_cmma field to mm_context_t
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Thu, 20 Apr 2017 08:03:46 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Apr 2017 11:33:09 +0000 (13:33 +0200)
Add use_cmma field to mm_context_t, like we do for storage keys.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Acked-by: Janosch Frank <frankja@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mmu.h
arch/s390/include/asm/mmu_context.h

index bea785d7f853c12ddd35e7b5e7d6f3d76b87aca7..bd6f303045185b7dbb2a4bc4a14d4c7729a84e4a 100644 (file)
@@ -22,6 +22,8 @@ typedef struct {
        unsigned int has_pgste:1;
        /* The mmu context uses storage keys. */
        unsigned int use_skey:1;
+       /* The mmu context uses CMMA. */
+       unsigned int use_cmma:1;
 } mm_context_t;
 
 #define INIT_MM_CONTEXT(name)                                             \
index 6e31d87fb669bd2037d04d91f1fd5b5bddb9e06b..c119d564d8f2817cde452687033e6eb4a834a121 100644 (file)
@@ -28,6 +28,7 @@ static inline int init_new_context(struct task_struct *tsk,
        mm->context.alloc_pgste = page_table_allocate_pgste;
        mm->context.has_pgste = 0;
        mm->context.use_skey = 0;
+       mm->context.use_cmma = 0;
 #endif
        switch (mm->context.asce_limit) {
        case 1UL << 42: