mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-05 08:48:53 +00:00
s390/kvm: Add use_cmma field to mm_context_t
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>
This commit is contained in:
parent
2d42f94773
commit
aa824e1340
@ -22,6 +22,8 @@ typedef struct {
|
|||||||
unsigned int has_pgste:1;
|
unsigned int has_pgste:1;
|
||||||
/* The mmu context uses storage keys. */
|
/* The mmu context uses storage keys. */
|
||||||
unsigned int use_skey:1;
|
unsigned int use_skey:1;
|
||||||
|
/* The mmu context uses CMMA. */
|
||||||
|
unsigned int use_cmma:1;
|
||||||
} mm_context_t;
|
} mm_context_t;
|
||||||
|
|
||||||
#define INIT_MM_CONTEXT(name) \
|
#define INIT_MM_CONTEXT(name) \
|
||||||
|
@ -28,6 +28,7 @@ static inline int init_new_context(struct task_struct *tsk,
|
|||||||
mm->context.alloc_pgste = page_table_allocate_pgste;
|
mm->context.alloc_pgste = page_table_allocate_pgste;
|
||||||
mm->context.has_pgste = 0;
|
mm->context.has_pgste = 0;
|
||||||
mm->context.use_skey = 0;
|
mm->context.use_skey = 0;
|
||||||
|
mm->context.use_cmma = 0;
|
||||||
#endif
|
#endif
|
||||||
switch (mm->context.asce_limit) {
|
switch (mm->context.asce_limit) {
|
||||||
case 1UL << 42:
|
case 1UL << 42:
|
||||||
|
Loading…
Reference in New Issue
Block a user