| /linux/arch/s390/mm/ |
| H A D | gmap.c | 59 struct gmap *gmap_alloc(unsigned long limit) in gmap_alloc() 61 struct gmap *gmap; in gmap_alloc() local 83 gmap = kzalloc(sizeof(struct gmap), GFP_KERNEL_ACCOUNT); in gmap_alloc() 84 if (!gmap) in gmap_alloc() 86 INIT_LIST_HEAD(&gmap->children); in gmap_alloc() 87 INIT_RADIX_TREE(&gmap->guest_to_host, GFP_KERNEL_ACCOUNT); in gmap_alloc() 88 INIT_RADIX_TREE(&gmap->host_to_guest, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc() 89 INIT_RADIX_TREE(&gmap->host_to_rmap, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc() 90 spin_lock_init(&gmap->guest_table_lock); in gmap_alloc() 91 spin_lock_init(&gmap->shadow_lock); in gmap_alloc() [all …]
|
| /linux/arch/s390/kvm/ |
| H A D | vsie.c | 45 struct gmap *gmap; /* 0x0220 */ member 81 int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level) in gmap_shadow_valid() 615 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start, in kvm_s390_vsie_gmap_notifier() argument 618 struct kvm *kvm = gmap->private; in kvm_s390_vsie_gmap_notifier() 623 if (!gmap_is_shadow(gmap)) in kvm_s390_vsie_gmap_notifier() 633 if (READ_ONCE(cur->gmap) != gmap) in kvm_s390_vsie_gmap_notifier() 670 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, prefix, NULL); in map_prefix() 672 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in map_prefix() 963 rc = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_fault() 985 kvm_s390_shadow_fault(vcpu, vsie_page->gmap, in handle_last_fault() [all …]
|
| H A D | kvm-s390.h | 109 if (kvm->arch.gmap) in kvm_is_ucontrol() 435 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start, 439 int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level); 442 struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce, int edat_level); 465 int __kvm_s390_mprotect_many(struct gmap *gmap, gpa_t gpa, u8 npages, unsigned int prot,
|
| H A D | pv.c | 345 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm_fast() 394 if ((kvm->arch.gmap->asce & _ASCE_TYPE_MASK) == _ASCE_TYPE_SEGMENT) in kvm_s390_pv_set_aside() 407 priv->old_gmap_table = (unsigned long)kvm->arch.gmap->table; in kvm_s390_pv_set_aside() 408 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_set_aside() 409 if (s390_replace_asce(kvm->arch.gmap)) in kvm_s390_pv_set_aside() 452 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0); in kvm_s390_pv_deinit_vm() 458 s390_replace_asce(kvm->arch.gmap); in kvm_s390_pv_deinit_vm() 645 uvcb.guest_asce = kvm->arch.gmap->asce; in kvm_s390_pv_init_vm() 672 kvm->arch.gmap->guest_handle = uvcb.guest_handle; in kvm_s390_pv_init_vm() 721 ret = __gmap_link(kvm->arch.gmap, addr, vmaddr); in unpack_one()
|
| H A D | kvm-s390.c | 274 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start, 704 struct gmap *gmap = kvm->arch.gmap; in kvm_arch_sync_dirty_log() local 717 gmap_sync_dirty_log_pmd(gmap, bitmap, gaddr, vmaddr); in kvm_arch_sync_dirty_log() 993 s390_reset_cmma(kvm->arch.gmap->mm); in kvm_s390_set_mem_control() 1022 struct gmap *new = gmap_create(current->mm, new_limit); in kvm_s390_set_mem_control() 1027 gmap_remove(kvm->arch.gmap); in kvm_s390_set_mem_control() 1029 kvm->arch.gmap = new; in kvm_s390_set_mem_control() 1036 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control() 3430 kvm->arch.gmap = NULL; in kvm_arch_init_vm() 3442 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm() [all …]
|
| H A D | gaccess.h | 457 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
|
| H A D | gaccess.c | 1199 static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr, in kvm_s390_shadow_tables() 1204 struct gmap *parent; in kvm_s390_shadow_tables() 1395 static int shadow_pgt_lookup(struct gmap *sg, unsigned long saddr, unsigned long *pgt, in shadow_pgt_lookup() 1434 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg, in kvm_s390_shadow_fault()
|
| H A D | interrupt.c | 2635 dev->kvm->arch.gmap->pfault_enabled = 1; in flic_set_attr() 2640 dev->kvm->arch.gmap->pfault_enabled = 0; in flic_set_attr()
|
| /linux/arch/s390/include/asm/ |
| H A D | kvm_host.h | 424 struct gmap *gmap; member 640 struct gmap *gmap; member
|
| /linux/include/video/ |
| H A D | gbe.h | 60 volatile uint32_t gmap[256]; /* gamma map */ member
|
| /linux/drivers/video/fbdev/ |
| H A D | gbefb.c | 806 gbe->gmap[i] = (i << 24) | (i << 16) | (i << 8); in gbefb_set_par()
|
| /linux/ |
| H A D | MAINTAINERS | 13902 F: arch/s390/include/asm/gmap.h 13909 F: arch/s390/mm/gmap.c
|