/arch/s390/include/asm/ |
D | gmap.h | 46 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 …]
|
D | uv.h | 353 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb); 356 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr);
|
D | kvm_host.h | 731 struct gmap *gmap; member 733 struct gmap *enabled_gmap; 933 struct gmap *gmap; member
|
D | lowcore.h | 152 __u64 gmap; /* 0x03d0 */ member
|
/arch/s390/mm/ |
D | gmap.c | 34 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 …]
|
D | fault.c | 186 asce = ((struct gmap *) S390_lowcore.gmap)->asce; in dump_fault_info() 351 struct gmap *gmap; in do_exception() local 406 gmap = NULL; in do_exception() 408 gmap = (struct gmap *) S390_lowcore.gmap; in do_exception() 412 address = __gmap_translate(gmap, address); in do_exception() 417 if (gmap->pfault_enabled) in do_exception() 461 if (IS_ENABLED(CONFIG_PGSTE) && gmap && in do_exception() 475 if (IS_ENABLED(CONFIG_PGSTE) && gmap) { in do_exception() 476 address = __gmap_link(gmap, current->thread.gmap_addr, in do_exception() 845 struct gmap *gmap = (struct gmap *)S390_lowcore.gmap; in do_non_secure_storage_access() local [all …]
|
D | Makefile | 12 obj-$(CONFIG_PGSTE) += gmap.o
|
/arch/s390/kernel/ |
D | uv.c | 198 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb) in gmap_make_secure() argument 210 mmap_read_lock(gmap->mm); in gmap_make_secure() 212 uaddr = __gmap_translate(gmap, gaddr); in gmap_make_secure() 215 vma = vma_lookup(gmap->mm, uaddr); in gmap_make_secure() 234 ptep = get_locked_pte(gmap->mm, uaddr, &ptelock); in gmap_make_secure() 239 mmap_read_unlock(gmap->mm); in gmap_make_secure() 267 if (gmap_fault(gmap, gaddr, FAULT_FLAG_WRITE)) in gmap_make_secure() 275 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr) in gmap_convert_to_secure() argument 280 .guest_handle = gmap->guest_handle, in gmap_convert_to_secure() 284 return gmap_make_secure(gmap, gaddr, &uvcb); in gmap_convert_to_secure()
|
D | asm-offsets.c | 127 OFFSET(__LC_GMAP, lowcore, gmap); in main() 149 OFFSET(__GMAP_ASCE, gmap, asce); in main()
|
D | entry.S | 237 lg %r14,__LC_GMAP # get gmap pointer
|
/arch/s390/kvm/ |
D | vsie.c | 39 struct gmap *gmap; /* 0x0220 */ member 563 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start, in kvm_s390_vsie_gmap_notifier() argument 566 struct kvm *kvm = gmap->private; in kvm_s390_vsie_gmap_notifier() 572 if (!gmap_is_shadow(gmap)) in kvm_s390_vsie_gmap_notifier() 587 if (READ_ONCE(cur->gmap) != gmap) in kvm_s390_vsie_gmap_notifier() 624 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, prefix, NULL); in map_prefix() 626 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in map_prefix() 917 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_fault() 939 kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_last_fault() 1026 rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest); in vsie_handle_mvpg() [all …]
|
D | diag.c | 40 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()
|
D | pv.c | 167 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm() 176 s390_replace_asce(kvm->arch.gmap); in kvm_s390_pv_deinit_vm() 196 uvcb.guest_asce = kvm->arch.gmap->asce; in kvm_s390_pv_init_vm() 217 kvm->arch.gmap->guest_handle = uvcb.guest_handle; in kvm_s390_pv_init_vm() 253 int ret = gmap_make_secure(kvm->arch.gmap, addr, &uvcb); in unpack_one()
|
D | kvm-s390.c | 261 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start, 618 struct gmap *gmap = kvm->arch.gmap; in kvm_arch_sync_dirty_log() local 631 gmap_sync_dirty_log_pmd(gmap, bitmap, gaddr, vmaddr); in kvm_arch_sync_dirty_log() 879 s390_reset_cmma(kvm->arch.gmap->mm); in kvm_s390_set_mem_control() 908 struct gmap *new = gmap_create(current->mm, new_limit); in kvm_s390_set_mem_control() 913 gmap_remove(kvm->arch.gmap); in kvm_s390_set_mem_control() 915 kvm->arch.gmap = new; in kvm_s390_set_mem_control() 922 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control() 2787 kvm->arch.gmap = NULL; in kvm_arch_init_vm() 2795 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm() [all …]
|
D | kvm-s390.h | 88 if (kvm->arch.gmap) in kvm_is_ucontrol() 319 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start,
|
D | intercept.c | 533 rc = gmap_make_secure(vcpu->arch.gmap, uvcb.gaddr, &uvcb); in handle_pv_uvc() 623 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept() 625 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept()
|
D | gaccess.h | 394 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
|
D | priv.c | 1211 struct gmap *gmap; in handle_essa() local 1215 gmap = vcpu->arch.gmap; in handle_essa() 1271 mmap_read_lock(gmap->mm); in handle_essa() 1273 __gmap_zap(gmap, cbrlo[i]); in handle_essa() 1274 mmap_read_unlock(gmap->mm); in handle_essa()
|
D | gaccess.c | 996 static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr, in kvm_s390_shadow_tables() 1000 struct gmap *parent; in kvm_s390_shadow_tables() 1187 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg, in kvm_s390_shadow_fault()
|
D | interrupt.c | 2684 dev->kvm->arch.gmap->pfault_enabled = 1; in flic_set_attr() 2687 dev->kvm->arch.gmap->pfault_enabled = 0; in flic_set_attr() 2901 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.summary_addr); in kvm_set_routing_entry() 2905 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.ind_addr); in kvm_set_routing_entry()
|