/linux-6.3-rc2/arch/s390/include/asm/ |
A D | gmap.h | 46 struct gmap { struct 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 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); 111 void gmap_disable(struct gmap *gmap); 113 int gmap_map_segment(struct gmap *gmap, unsigned long from, 150 void s390_unlist_old_asce(struct gmap *gmap); [all …]
|
A D | uv.h | 438 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb); 439 int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr); 443 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr);
|
A D | kvm_host.h | 750 struct gmap *gmap; member 752 struct gmap *enabled_gmap; 957 struct gmap *gmap; member
|
A D | lowcore.h | 163 __u64 gmap; /* 0x03d0 */ member
|
/linux-6.3-rc2/arch/s390/mm/ |
A D | gmap.c | 36 struct gmap *gmap; in gmap_alloc() local 98 struct gmap *gmap; in gmap_create() local 214 struct gmap *gmap_get(struct gmap *gmap) in gmap_get() argument 227 void gmap_put(struct gmap *gmap) in gmap_put() argument 238 void gmap_remove(struct gmap *gmap) in gmap_remove() argument 274 void gmap_enable(struct gmap *gmap) in gmap_enable() argument 284 void gmap_disable(struct gmap *gmap) in gmap_disable() argument 512 struct gmap *gmap; in gmap_unlink() local 2323 struct gmap *gmap; in gmap_pmdp_clear() local 2376 struct gmap *gmap; in gmap_pmdp_idte_local() local [all …]
|
A D | fault.c | 205 asce = ((struct gmap *) S390_lowcore.gmap)->asce; in dump_fault_info() 361 struct gmap *gmap; in do_exception() local 412 gmap = NULL; in do_exception() 414 gmap = (struct gmap *) S390_lowcore.gmap; in do_exception() 423 if (gmap->pfault_enabled) in do_exception() 463 if (gmap) { in do_exception() 793 struct gmap *gmap; in do_secure_storage_access() local 825 gmap = (struct gmap *)S390_lowcore.gmap; in do_secure_storage_access() 872 struct gmap *gmap = (struct gmap *)S390_lowcore.gmap; in do_non_secure_storage_access() local 888 struct gmap *gmap = (struct gmap *)S390_lowcore.gmap; in do_secure_storage_violation() local [all …]
|
A D | Makefile | 12 obj-$(CONFIG_PGSTE) += gmap.o
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | uv.c | 276 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb) in gmap_make_secure() argument 288 mmap_read_lock(gmap->mm); in gmap_make_secure() 290 uaddr = __gmap_translate(gmap, gaddr); in gmap_make_secure() 293 vma = vma_lookup(gmap->mm, uaddr); in gmap_make_secure() 319 mmap_read_unlock(gmap->mm); in gmap_make_secure() 359 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr) in gmap_convert_to_secure() argument 364 .guest_handle = gmap->guest_handle, in gmap_convert_to_secure() 381 int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr) in gmap_destroy_page() argument 389 mmap_read_lock(gmap->mm); in gmap_destroy_page() 394 vma = vma_lookup(gmap->mm, uaddr); in gmap_destroy_page() [all …]
|
A D | asm-offsets.c | 141 OFFSET(__LC_GMAP, lowcore, gmap); in main() 164 OFFSET(__GMAP_ASCE, gmap, asce); in main()
|
A D | entry.S | 218 lg %r14,__LC_GMAP # get gmap pointer
|
/linux-6.3-rc2/arch/s390/kvm/ |
A D | vsie.c | 39 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 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() 1183 if (vsie_page->gmap) in release_gmap_shadow() 1194 struct gmap *gmap; in acquire_gmap_shadow() local 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() 1213 if (IS_ERR(gmap)) in acquire_gmap_shadow() 1214 return PTR_ERR(gmap); in acquire_gmap_shadow() [all …]
|
A 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()
|
A D | pv.c | 271 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm_fast() 327 priv->old_gmap_table = (unsigned long)kvm->arch.gmap->table; in kvm_s390_pv_set_aside() 328 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_set_aside() 329 if (s390_replace_asce(kvm->arch.gmap)) in kvm_s390_pv_set_aside() 372 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm() 378 s390_replace_asce(kvm->arch.gmap); in kvm_s390_pv_deinit_vm() 550 uvcb.guest_asce = kvm->arch.gmap->asce; in kvm_s390_pv_init_vm() 575 kvm->arch.gmap->guest_handle = uvcb.guest_handle; in kvm_s390_pv_init_vm() 614 int ret = gmap_make_secure(kvm->arch.gmap, addr, &uvcb); in unpack_one()
|
A D | kvm-s390.c | 260 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start, 667 struct gmap *gmap = kvm->arch.gmap; in kvm_arch_sync_dirty_log() local 976 gmap_remove(kvm->arch.gmap); in kvm_s390_set_mem_control() 978 kvm->arch.gmap = new; in kvm_s390_set_mem_control() 3315 kvm->arch.gmap = NULL; in kvm_arch_init_vm() 3324 if (!kvm->arch.gmap) in kvm_arch_init_vm() 3397 gmap_remove(kvm->arch.gmap); in kvm_arch_destroy_vm() 3408 if (!vcpu->arch.gmap) in __kvm_ucontrol_vcpu_init() 3663 vcpu->arch.gmap = vcpu->kvm->arch.gmap; in kvm_arch_vcpu_postcreate() 3971 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start, in kvm_gmap_notifier() argument [all …]
|
A D | intercept.c | 513 rc = gmap_make_secure(vcpu->arch.gmap, uvcb.gaddr, &uvcb); in handle_pv_uvc() 608 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept() 610 gmap_convert_to_secure(vcpu->arch.gmap, in kvm_handle_sie_intercept()
|
A D | kvm-s390.h | 89 if (kvm->arch.gmap) in kvm_is_ucontrol() 360 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start,
|
A D | priv.c | 1221 struct gmap *gmap; in handle_essa() local 1225 gmap = vcpu->arch.gmap; in handle_essa() 1281 mmap_read_lock(gmap->mm); in handle_essa() 1283 __gmap_zap(gmap, cbrlo[i]); in handle_essa() 1284 mmap_read_unlock(gmap->mm); in handle_essa()
|
A D | gaccess.h | 455 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
|
A D | gaccess.c | 1381 static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr, in kvm_s390_shadow_tables() 1385 struct gmap *parent; in kvm_s390_shadow_tables() 1572 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg, in kvm_s390_shadow_fault()
|
A D | interrupt.c | 2681 dev->kvm->arch.gmap->pfault_enabled = 1; in flic_set_attr() 2684 dev->kvm->arch.gmap->pfault_enabled = 0; in flic_set_attr() 2898 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.summary_addr); in kvm_set_routing_entry() 2902 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.ind_addr); in kvm_set_routing_entry()
|
/linux-6.3-rc2/include/video/ |
A D | gbe.h | 60 volatile uint32_t gmap[256]; /* gamma map */ member
|
/linux-6.3-rc2/drivers/net/dsa/ |
A D | lantiq_gswip.c | 298 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.3-rc2/drivers/video/fbdev/ |
A D | gbefb.c | 805 gbe->gmap[i] = (i << 24) | (i << 16) | (i << 8); in gbefb_set_par()
|
/linux-6.3-rc2/ |
A D | MAINTAINERS | 11323 F: arch/s390/include/asm/gmap.h 11329 F: arch/s390/mm/gmap.c
|