• Home
  • Raw
  • Download

Lines Matching refs:gmap

235 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start,
581 struct gmap *gmap = kvm->arch.gmap; in kvm_s390_sync_dirty_log() local
594 gmap_sync_dirty_log_pmd(gmap, bitmap, gaddr, vmaddr); in kvm_s390_sync_dirty_log()
846 s390_reset_cmma(kvm->arch.gmap->mm); in kvm_s390_set_mem_control()
875 struct gmap *new = gmap_create(current->mm, new_limit); in kvm_s390_set_mem_control()
880 gmap_remove(kvm->arch.gmap); in kvm_s390_set_mem_control()
882 kvm->arch.gmap = new; in kvm_s390_set_mem_control()
889 (void *) kvm->arch.gmap->asce); in kvm_s390_set_mem_control()
2490 kvm->arch.gmap = NULL; in kvm_arch_init_vm()
2498 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm()
2499 if (!kvm->arch.gmap) in kvm_arch_init_vm()
2501 kvm->arch.gmap->private = kvm; in kvm_arch_init_vm()
2502 kvm->arch.gmap->pfault_enabled = 0; in kvm_arch_init_vm()
2531 gmap_remove(vcpu->arch.gmap); in kvm_arch_vcpu_destroy()
2565 gmap_remove(kvm->arch.gmap); in kvm_arch_destroy_vm()
2575 vcpu->arch.gmap = gmap_create(current->mm, -1UL); in __kvm_ucontrol_vcpu_init()
2576 if (!vcpu->arch.gmap) in __kvm_ucontrol_vcpu_init()
2578 vcpu->arch.gmap->private = vcpu->kvm; in __kvm_ucontrol_vcpu_init()
2888 vcpu->arch.gmap = vcpu->kvm->arch.gmap; in kvm_arch_vcpu_postcreate()
2894 vcpu->arch.enabled_gmap = vcpu->arch.gmap; in kvm_arch_vcpu_postcreate()
3149 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start, in kvm_gmap_notifier() argument
3152 struct kvm *kvm = gmap->private; in kvm_gmap_notifier()
3157 if (gmap_is_shadow(gmap)) in kvm_gmap_notifier()
3506 rc = gmap_mprotect_notify(vcpu->arch.gmap, in kvm_s390_handle_requests()
3614 return gmap_fault(vcpu->arch.gmap, gpa, in kvm_arch_fault_in_page()
3681 if (!vcpu->arch.gmap->pfault_enabled) in kvm_arch_setup_async_pf()
4398 r = gmap_map_segment(vcpu->arch.gmap, ucasmap.user_addr, in kvm_arch_vcpu_ioctl()
4415 r = gmap_unmap_segment(vcpu->arch.gmap, ucasmap.vcpu_addr, in kvm_arch_vcpu_ioctl()
4421 r = gmap_fault(vcpu->arch.gmap, arg, 0); in kvm_arch_vcpu_ioctl()
4536 rc = gmap_unmap_segment(kvm->arch.gmap, old->base_gfn * PAGE_SIZE, in kvm_arch_commit_memory_region()
4540 rc = gmap_unmap_segment(kvm->arch.gmap, old->base_gfn * PAGE_SIZE, in kvm_arch_commit_memory_region()
4546 rc = gmap_map_segment(kvm->arch.gmap, mem->userspace_addr, in kvm_arch_commit_memory_region()