/Linux-v5.4/arch/s390/kvm/ |
D | gaccess.c | 19 union asce { union 258 unsigned long asce : 64; /* Address-Space-Control Element */ member 379 static int ar_translation(struct kvm_vcpu *vcpu, union asce *asce, u8 ar, in ar_translation() argument 397 asce->val = vcpu->arch.sie_block->gcr[1]; in ar_translation() 400 asce->val = vcpu->arch.sie_block->gcr[7]; in ar_translation() 464 asce->val = aste.asce; in ar_translation() 554 static int get_vcpu_asce(struct kvm_vcpu *vcpu, union asce *asce, in get_vcpu_asce() argument 561 asce->val = 0; in get_vcpu_asce() 562 asce->r = 1; in get_vcpu_asce() 571 asce->val = vcpu->arch.sie_block->gcr[1]; in get_vcpu_asce() [all …]
|
D | vsie.c | 1090 unsigned long asce; in acquire_gmap_shadow() local 1095 asce = vcpu->arch.sie_block->gcr[1]; in acquire_gmap_shadow() 1105 if (vsie_page->gmap && gmap_shadow_valid(vsie_page->gmap, asce, edat)) in acquire_gmap_shadow() 1110 gmap = gmap_shadow(vcpu->arch.gmap, asce, edat); in acquire_gmap_shadow()
|
D | kvm-s390.c | 889 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control()
|
/Linux-v5.4/arch/s390/include/asm/ |
D | mmu_context.h | 47 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context() 52 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context() 57 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context() 62 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context() 73 S390_lowcore.user_asce = mm->context.asce; in set_user_asce() 93 S390_lowcore.user_asce = next->context.asce; in switch_mm()
|
D | tlbflush.h | 22 static inline void __tlb_flush_idte(unsigned long asce) in __tlb_flush_idte() argument 32 : : "a" (opt), "a" (asce) : "cc"); in __tlb_flush_idte() 69 __tlb_flush_idte(mm->context.asce); in __tlb_flush_mm() 81 __tlb_flush_idte(init_mm.context.asce); in __tlb_flush_kernel()
|
D | gmap.h | 53 unsigned long asce; member 122 struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce, 124 int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level);
|
D | mmu.h | 16 unsigned long asce; member
|
D | pgtable.h | 582 unsigned long address, unsigned long asce) in crdte() argument 591 : "d" (reg3), "d" (reg4), "d" (reg5), "a" (asce) in crdte() 1001 unsigned long opt, unsigned long asce, in __ptep_ipte() argument 1016 opt = opt | (asce & _ASCE_ORIGIN); in __ptep_ipte() 1440 unsigned long opt, unsigned long asce, in __pmdp_idte() argument 1460 [r3] "a" (asce), [m4] "i" (local) in __pmdp_idte() 1466 unsigned long opt, unsigned long asce, in __pudp_idte() argument 1487 [r3] "a" (asce), [m4] "i" (local) in __pudp_idte()
|
D | pgalloc.h | 155 void base_asce_free(unsigned long asce);
|
/Linux-v5.4/arch/s390/mm/ |
D | pgalloc.c | 100 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in crst_table_upgrade() 108 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in crst_table_upgrade() 135 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in crst_table_downgrade() 515 void base_asce_free(unsigned long asce) in base_asce_free() argument 517 unsigned long table = asce & _ASCE_ORIGIN; in base_asce_free() 519 if (!asce) in base_asce_free() 521 switch (asce & _ASCE_TYPE_MASK) { in base_asce_free() 569 unsigned long asce, table, end; in base_asce_alloc() local 580 asce = table | _ASCE_TYPE_SEGMENT | _ASCE_TABLE_LENGTH; in base_asce_alloc() 586 asce = table | _ASCE_TYPE_REGION3 | _ASCE_TABLE_LENGTH; in base_asce_alloc() [all …]
|
D | fault.c | 111 static void dump_pagetable(unsigned long asce, unsigned long address) in dump_pagetable() argument 113 unsigned long *table = __va(asce & _ASCE_ORIGIN); in dump_pagetable() 115 pr_alert("AS:%016lx ", asce); in dump_pagetable() 116 switch (asce & _ASCE_TYPE_MASK) { in dump_pagetable() 166 unsigned long asce; in dump_fault_info() local 188 asce = S390_lowcore.user_asce; in dump_fault_info() 192 asce = S390_lowcore.vdso_asce; in dump_fault_info() 196 asce = ((struct gmap *) S390_lowcore.gmap)->asce; in dump_fault_info() 200 asce = S390_lowcore.kernel_asce; in dump_fault_info() 207 dump_pagetable(asce, regs->int_parm_long & __FAIL_ADDR_MASK); in dump_fault_info()
|
D | pgtable.c | 32 unsigned long opt, asce; in ptep_ipte_local() local 36 asce = READ_ONCE(mm->context.gmap_asce); in ptep_ipte_local() 37 if (asce == 0UL || nodat) in ptep_ipte_local() 39 if (asce != -1UL) { in ptep_ipte_local() 40 asce = asce ? : mm->context.asce; in ptep_ipte_local() 43 __ptep_ipte(addr, ptep, opt, asce, IPTE_LOCAL); in ptep_ipte_local() 52 unsigned long opt, asce; in ptep_ipte_global() local 56 asce = READ_ONCE(mm->context.gmap_asce); in ptep_ipte_global() 57 if (asce == 0UL || nodat) in ptep_ipte_global() 59 if (asce != -1UL) { in ptep_ipte_global() [all …]
|
D | gmap.c | 79 gmap->asce = atype | _ASCE_TABLE_LENGTH | in gmap_alloc() 109 gmap_asce = gmap->asce; in gmap_create() 121 __tlb_flush_idte(gmap->asce); in gmap_flush_tlb() 260 struct gmap, list)->asce; in gmap_remove() 555 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION1) { in __gmap_link() 563 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION2) { in __gmap_link() 571 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION3) { in __gmap_link() 792 if ((gmap->asce & _ASCE_TYPE_MASK) + 4 < (level * 4)) in gmap_table_walk() 796 if (gaddr & (-1UL << (31 + ((gmap->asce & _ASCE_TYPE_MASK) >> 2)*11))) in gmap_table_walk() 799 switch (gmap->asce & _ASCE_TYPE_MASK) { in gmap_table_walk() [all …]
|
D | init.c | 102 init_mm.context.asce = (__pa(init_mm.pgd) & PAGE_MASK) | asce_bits; in paging_init() 103 S390_lowcore.kernel_asce = init_mm.context.asce; in paging_init()
|
/Linux-v5.4/arch/s390/lib/ |
D | uaccess.c | 66 unsigned long asce, cr; in enable_sacf_uaccess() local 72 asce = S390_lowcore.kernel_asce; in enable_sacf_uaccess() 79 asce = S390_lowcore.user_asce; in enable_sacf_uaccess() 82 if (cr != asce) { in enable_sacf_uaccess() 83 __ctl_load(asce, 7, 7); in enable_sacf_uaccess()
|
/Linux-v5.4/drivers/s390/char/ |
D | sclp_sd.c | 287 unsigned long page, asce = 0; in sclp_sd_store_data() local 310 asce = base_asce_alloc((unsigned long) data, dsize); in sclp_sd_store_data() 311 if (!asce) { in sclp_sd_store_data() 318 rc = sclp_sd_sync(page, SD_EQ_STORE_DATA, di, asce, (u64) data, &dsize, in sclp_sd_store_data() 334 base_asce_free(asce); in sclp_sd_store_data()
|
D | sclp_diag.h | 59 u64 asce; member
|
D | sclp_ftp.c | 109 sccb->evbuf.mdd.ftp.asce = _ASCE_REAL_SPACE; in sclp_ftp_et7()
|
/Linux-v5.4/arch/s390/kernel/ |
D | entry.S | 277 lctlg %c1,%c1,__GMAP_ASCE(%r14) # load primary asce 293 lctlg %c1,%c1,__LC_USER_ASCE # load primary asce 457 # _CIF_ASCE_PRIMARY and/or _CIF_ASCE_SECONDARY set, load user space asce 461 lctlg %c7,%c7,__LC_VDSO_ASCE # load secondary asce 468 lctlg %c1,%c1,__LC_USER_ASCE # load primary asce 859 # _CIF_ASCE_PRIMARY and/or CIF_ASCE_SECONDARY set, load user space asce 863 lctlg %c7,%c7,__LC_VDSO_ASCE # load secondary asce 870 lctlg %c1,%c1,__LC_USER_ASCE # load primary asce 1343 lctlg %c1,%c1,__LC_USER_ASCE # load primary asce
|
D | asm-offsets.c | 199 OFFSET(__GMAP_ASCE, gmap, asce); in main()
|