Home
last modified time | relevance | path

Searched refs:gmap (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/arch/s390/include/asm/
Dgmap.h46 struct gmap { struct
66 struct gmap *parent; argument
96 void (*notifier_call)(struct gmap *gmap, unsigned long start,
100 static inline int gmap_is_shadow(struct gmap *gmap) in gmap_is_shadow() argument
102 return !!gmap->parent; in gmap_is_shadow()
105 struct gmap *gmap_create(struct mm_struct *mm, unsigned long limit);
106 void gmap_remove(struct gmap *gmap);
107 struct gmap *gmap_get(struct gmap *gmap);
108 void gmap_put(struct gmap *gmap);
110 void gmap_enable(struct gmap *gmap);
[all …]
Duv.h428 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb);
429 int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr);
433 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr);
Dkvm_host.h750 struct gmap *gmap; member
752 struct gmap *enabled_gmap;
955 struct gmap *gmap; member
Dlowcore.h163 __u64 gmap; /* 0x03d0 */ member
/linux-6.1.9/arch/s390/mm/
Dgmap.c34 static struct gmap *gmap_alloc(unsigned long limit) in gmap_alloc()
36 struct gmap *gmap; in gmap_alloc() local
58 gmap = kzalloc(sizeof(struct gmap), GFP_KERNEL_ACCOUNT); in gmap_alloc()
59 if (!gmap) in gmap_alloc()
61 INIT_LIST_HEAD(&gmap->crst_list); in gmap_alloc()
62 INIT_LIST_HEAD(&gmap->children); in gmap_alloc()
63 INIT_LIST_HEAD(&gmap->pt_list); in gmap_alloc()
64 INIT_RADIX_TREE(&gmap->guest_to_host, GFP_KERNEL_ACCOUNT); in gmap_alloc()
65 INIT_RADIX_TREE(&gmap->host_to_guest, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc()
66 INIT_RADIX_TREE(&gmap->host_to_rmap, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc()
[all …]
Dfault.c187 asce = ((struct gmap *) S390_lowcore.gmap)->asce; in dump_fault_info()
332 struct gmap *gmap; in do_exception() local
387 gmap = NULL; in do_exception()
389 gmap = (struct gmap *) S390_lowcore.gmap; in do_exception()
393 address = __gmap_translate(gmap, address); in do_exception()
398 if (gmap->pfault_enabled) in do_exception()
438 if (gmap) { in do_exception()
450 if (IS_ENABLED(CONFIG_PGSTE) && gmap && in do_exception()
466 if (IS_ENABLED(CONFIG_PGSTE) && gmap) { in do_exception()
467 address = __gmap_link(gmap, current->thread.gmap_addr, in do_exception()
[all …]
DMakefile12 obj-$(CONFIG_PGSTE) += gmap.o
/linux-6.1.9/arch/s390/kernel/
Duv.c269 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb) in gmap_make_secure() argument
281 mmap_read_lock(gmap->mm); in gmap_make_secure()
283 uaddr = __gmap_translate(gmap, gaddr); in gmap_make_secure()
286 vma = vma_lookup(gmap->mm, uaddr); in gmap_make_secure()
305 ptep = get_locked_pte(gmap->mm, uaddr, &ptelock); in gmap_make_secure()
306 if (should_export_before_import(uvcb, gmap->mm)) in gmap_make_secure()
312 mmap_read_unlock(gmap->mm); in gmap_make_secure()
344 if (gmap_fault(gmap, gaddr, FAULT_FLAG_WRITE)) in gmap_make_secure()
352 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr) in gmap_convert_to_secure() argument
357 .guest_handle = gmap->guest_handle, in gmap_convert_to_secure()
[all …]
Dasm-offsets.c140 OFFSET(__LC_GMAP, lowcore, gmap); in main()
163 OFFSET(__GMAP_ASCE, gmap, asce); in main()
Dentry.S240 lg %r14,__LC_GMAP # get gmap pointer
/linux-6.1.9/arch/s390/kvm/
Dvsie.c39 struct gmap *gmap; /* 0x0220 */ member
569 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start, in kvm_s390_vsie_gmap_notifier() argument
572 struct kvm *kvm = gmap->private; in kvm_s390_vsie_gmap_notifier()
578 if (!gmap_is_shadow(gmap)) in kvm_s390_vsie_gmap_notifier()
593 if (READ_ONCE(cur->gmap) != gmap) in kvm_s390_vsie_gmap_notifier()
630 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, prefix, NULL); in map_prefix()
632 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in map_prefix()
923 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_fault()
945 kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_last_fault()
1032 rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest); in vsie_handle_mvpg()
[all …]
Ddiag.c40 gmap_discard(vcpu->arch.gmap, start, end); in diag_release_pages()
48 gmap_discard(vcpu->arch.gmap, start, prefix); in diag_release_pages()
50 gmap_discard(vcpu->arch.gmap, 0, PAGE_SIZE); in diag_release_pages()
52 gmap_discard(vcpu->arch.gmap, PAGE_SIZE, 2 * PAGE_SIZE); in diag_release_pages()
53 gmap_discard(vcpu->arch.gmap, prefix + 2 * PAGE_SIZE, end); in diag_release_pages()
Dpv.c169 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm()
184 s390_replace_asce(kvm->arch.gmap); in kvm_s390_pv_deinit_vm()
228 uvcb.guest_asce = kvm->arch.gmap->asce; in kvm_s390_pv_init_vm()
252 kvm->arch.gmap->guest_handle = uvcb.guest_handle; in kvm_s390_pv_init_vm()
291 int ret = gmap_make_secure(kvm->arch.gmap, addr, &uvcb); in unpack_one()
Dkvm-s390.c263 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start,
659 struct gmap *gmap = kvm->arch.gmap; in kvm_arch_sync_dirty_log() local
672 gmap_sync_dirty_log_pmd(gmap, bitmap, gaddr, vmaddr); in kvm_arch_sync_dirty_log()
934 s390_reset_cmma(kvm->arch.gmap->mm); in kvm_s390_set_mem_control()
963 struct gmap *new = gmap_create(current->mm, new_limit); in kvm_s390_set_mem_control()
968 gmap_remove(kvm->arch.gmap); in kvm_s390_set_mem_control()
970 kvm->arch.gmap = new; in kvm_s390_set_mem_control()
977 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control()
3225 kvm->arch.gmap = NULL; in kvm_arch_init_vm()
3233 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm()
[all …]
Dintercept.c514 rc = gmap_make_secure(vcpu->arch.gmap, uvcb.gaddr, &uvcb); in handle_pv_uvc()
609 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept()
611 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept()
Dkvm-s390.h88 if (kvm->arch.gmap) in kvm_is_ucontrol()
356 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start,
Dpriv.c1222 struct gmap *gmap; in handle_essa() local
1226 gmap = vcpu->arch.gmap; in handle_essa()
1282 mmap_read_lock(gmap->mm); in handle_essa()
1284 __gmap_zap(gmap, cbrlo[i]); in handle_essa()
1285 mmap_read_unlock(gmap->mm); in handle_essa()
Dgaccess.h452 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
Dgaccess.c1272 static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr, in kvm_s390_shadow_tables()
1276 struct gmap *parent; in kvm_s390_shadow_tables()
1463 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg, in kvm_s390_shadow_fault()
Dinterrupt.c2686 dev->kvm->arch.gmap->pfault_enabled = 1; in flic_set_attr()
2689 dev->kvm->arch.gmap->pfault_enabled = 0; in flic_set_attr()
2903 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.summary_addr); in kvm_set_routing_entry()
2907 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.ind_addr); in kvm_set_routing_entry()
/linux-6.1.9/include/video/
Dgbe.h60 volatile uint32_t gmap[256]; /* gamma map */ member
/linux-6.1.9/drivers/net/dsa/
Dlantiq_gswip.c298 u8 gmap; member
576 tbl->gmap = (crtl & GSWIP_PCE_TBL_CTRL_GMAP_MASK) >> 7; in gswip_pce_table_entry_read()
627 crtl |= (tbl->gmap << 7) & GSWIP_PCE_TBL_CTRL_GMAP_MASK; in gswip_pce_table_entry_write()
/linux-6.1.9/drivers/video/fbdev/
Dgbefb.c805 gbe->gmap[i] = (i << 24) | (i << 16) | (i << 8); in gbefb_set_par()
/linux-6.1.9/
DMAINTAINERS11269 F: arch/s390/include/asm/gmap.h
11275 F: arch/s390/mm/gmap.c