Home
last modified time | relevance | path

Searched refs:asce (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/arch/s390/kvm/
Dgaccess.c20 union asce { union
259 unsigned long asce : 64; /* Address-Space-Control Element */ member
380 static int ar_translation(struct kvm_vcpu *vcpu, union asce *asce, u8 ar, in ar_translation() argument
398 asce->val = vcpu->arch.sie_block->gcr[1]; in ar_translation()
401 asce->val = vcpu->arch.sie_block->gcr[7]; in ar_translation()
465 asce->val = aste.asce; in ar_translation()
572 static int get_vcpu_asce(struct kvm_vcpu *vcpu, union asce *asce, in get_vcpu_asce() argument
579 asce->val = 0; in get_vcpu_asce()
580 asce->r = 1; in get_vcpu_asce()
589 asce->val = vcpu->arch.sie_block->gcr[1]; in get_vcpu_asce()
[all …]
Dvsie.c1192 unsigned long asce; in acquire_gmap_shadow() local
1197 asce = vcpu->arch.sie_block->gcr[1]; in acquire_gmap_shadow()
1207 if (vsie_page->gmap && gmap_shadow_valid(vsie_page->gmap, asce, edat)) in acquire_gmap_shadow()
1212 gmap = gmap_shadow(vcpu->arch.gmap, asce, edat); in acquire_gmap_shadow()
Dpv.c228 uvcb.guest_asce = kvm->arch.gmap->asce; in kvm_s390_pv_init_vm()
Dkvm-s390.c977 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control()
/linux-6.1.9/arch/s390/mm/
Dpgalloc.c75 S390_lowcore.user_asce = mm->context.asce; in __crst_table_upgrade()
119 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in crst_table_upgrade()
128 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in crst_table_upgrade()
624 void base_asce_free(unsigned long asce) in base_asce_free() argument
626 unsigned long *table = __va(asce & _ASCE_ORIGIN); in base_asce_free()
628 if (!asce) in base_asce_free()
630 switch (asce & _ASCE_TYPE_MASK) { in base_asce_free()
678 unsigned long asce, *table, end; in base_asce_alloc() local
689 asce = __pa(table) | _ASCE_TYPE_SEGMENT | _ASCE_TABLE_LENGTH; in base_asce_alloc()
695 asce = __pa(table) | _ASCE_TYPE_REGION3 | _ASCE_TABLE_LENGTH; in base_asce_alloc()
[all …]
Dgmap.c78 gmap->asce = atype | _ASCE_TABLE_LENGTH | in gmap_alloc()
108 gmap_asce = gmap->asce; in gmap_create()
120 __tlb_flush_idte(gmap->asce); in gmap_flush_tlb()
259 struct gmap, list)->asce; in gmap_remove()
554 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION1) { in __gmap_link()
562 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION2) { in __gmap_link()
570 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION3) { in __gmap_link()
796 const int asce_type = gmap->asce & _ASCE_TYPE_MASK; in gmap_table_walk()
1285 static inline void gmap_idte_one(unsigned long asce, unsigned long vaddr) in gmap_idte_one() argument
1289 : : "a" (asce), "a" (vaddr) : "cc", "memory"); in gmap_idte_one()
[all …]
Dpgtable.c50 unsigned long opt, asce; in ptep_ipte_local() local
54 asce = READ_ONCE(mm->context.gmap_asce); in ptep_ipte_local()
55 if (asce == 0UL || nodat) in ptep_ipte_local()
57 if (asce != -1UL) { in ptep_ipte_local()
58 asce = asce ? : mm->context.asce; in ptep_ipte_local()
61 __ptep_ipte(addr, ptep, opt, asce, IPTE_LOCAL); in ptep_ipte_local()
70 unsigned long opt, asce; in ptep_ipte_global() local
74 asce = READ_ONCE(mm->context.gmap_asce); in ptep_ipte_global()
75 if (asce == 0UL || nodat) in ptep_ipte_global()
77 if (asce != -1UL) { in ptep_ipte_global()
[all …]
Dfault.c106 static void dump_pagetable(unsigned long asce, unsigned long address) in dump_pagetable() argument
108 unsigned long *table = __va(asce & _ASCE_ORIGIN); in dump_pagetable()
110 pr_alert("AS:%016lx ", asce); in dump_pagetable()
111 switch (asce & _ASCE_TYPE_MASK) { in dump_pagetable()
161 unsigned long asce; in dump_fault_info() local
183 asce = S390_lowcore.user_asce; in dump_fault_info()
187 asce = ((struct gmap *) S390_lowcore.gmap)->asce; in dump_fault_info()
191 asce = S390_lowcore.kernel_asce; in dump_fault_info()
198 dump_pagetable(asce, regs->int_parm_long & __FAIL_ADDR_MASK); in dump_fault_info()
Dinit.c109 init_mm.context.asce = (__pa(init_mm.pgd) & PAGE_MASK) | asce_bits; in paging_init()
110 S390_lowcore.kernel_asce = init_mm.context.asce; in paging_init()
/linux-6.1.9/arch/s390/include/asm/
Dtlbflush.h20 static inline void __tlb_flush_idte(unsigned long asce) in __tlb_flush_idte() argument
28 asm volatile("idte 0,%1,%0" : : "a" (opt), "a" (asce) : "cc"); in __tlb_flush_idte()
63 __tlb_flush_idte(mm->context.asce); in __tlb_flush_mm()
75 __tlb_flush_idte(init_mm.context.asce); in __tlb_flush_kernel()
Dgmap.h55 unsigned long asce; member
126 struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce,
128 int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level);
Dmmu_context.h67 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context()
81 S390_lowcore.user_asce = next->context.asce; in switch_mm_irqs_off()
Dmmu.h17 unsigned long asce; member
Dpgtable.h602 unsigned long address, unsigned long asce) in crdte() argument
609 : [r2] "d" (r2.pair), [asce] "a" (asce) in crdte()
1049 unsigned long opt, unsigned long asce, in __ptep_ipte() argument
1064 opt = opt | (asce & _ASCE_ORIGIN); in __ptep_ipte()
1544 unsigned long opt, unsigned long asce, in __pmdp_idte() argument
1564 [r3] "a" (asce), [m4] "i" (local) in __pmdp_idte()
1570 unsigned long opt, unsigned long asce, in __pudp_idte() argument
1591 [r3] "a" (asce), [m4] "i" (local) in __pudp_idte()
Dpgalloc.h151 void base_asce_free(unsigned long asce);
/linux-6.1.9/drivers/s390/char/
Dsclp_sd.c288 unsigned long page, asce = 0; in sclp_sd_store_data() local
311 asce = base_asce_alloc((unsigned long) data, dsize); in sclp_sd_store_data()
312 if (!asce) { in sclp_sd_store_data()
319 rc = sclp_sd_sync(page, SD_EQ_STORE_DATA, di, asce, (u64) data, &dsize, in sclp_sd_store_data()
335 base_asce_free(asce); in sclp_sd_store_data()
Dsclp_diag.h59 u64 asce; member
Dsclp_ftp.c112 sccb->evbuf.mdd.ftp.asce = _ASCE_REAL_SPACE; in sclp_ftp_et7()
/linux-6.1.9/arch/s390/kernel/
Dentry.S176 lctlg %c1,%c1,__LC_KERNEL_ASCE # load primary asce
243 lctlg %c1,%c1,__GMAP_ASCE(%r14) # load primary asce
262 lctlg %c1,%c1,__LC_KERNEL_ASCE # load primary asce
Dasm-offsets.c163 OFFSET(__GMAP_ASCE, gmap, asce); in main()