• Home
  • Raw
  • Download

Lines Matching refs:vma

1434 	struct vm_area_struct *vma;  in kvm_host_page_size()  local
1444 vma = find_vma(current->mm, addr); in kvm_host_page_size()
1445 if (!vma) in kvm_host_page_size()
1448 size = vma_kernel_pagesize(vma); in kvm_host_page_size()
1612 static bool vma_is_valid(struct vm_area_struct *vma, bool write_fault) in vma_is_valid() argument
1614 if (unlikely(!(vma->vm_flags & VM_READ))) in vma_is_valid()
1617 if (write_fault && (unlikely(!(vma->vm_flags & VM_WRITE)))) in vma_is_valid()
1630 static int hva_to_pfn_remapped(struct vm_area_struct *vma, in hva_to_pfn_remapped() argument
1640 r = follow_pte(vma->vm_mm, addr, &ptep, &ptl); in hva_to_pfn_remapped()
1655 r = follow_pte(vma->vm_mm, addr, &ptep, &ptl); in hva_to_pfn_remapped()
1713 struct vm_area_struct *vma; in hva_to_pfn() local
1738 vma = find_vma_intersection(current->mm, addr, addr + 1); in hva_to_pfn()
1740 if (vma == NULL) in hva_to_pfn()
1742 else if (vma->vm_flags & (VM_IO | VM_PFNMAP)) { in hva_to_pfn()
1743 r = hva_to_pfn_remapped(vma, addr, async, write_fault, writable, &pfn); in hva_to_pfn()
1749 if (async && vma_is_valid(vma, write_fault)) in hva_to_pfn()
2770 struct kvm_vcpu *vcpu = vmf->vma->vm_file->private_data; in kvm_vcpu_fault()
2794 static int kvm_vcpu_mmap(struct file *file, struct vm_area_struct *vma) in kvm_vcpu_mmap() argument
2796 vma->vm_ops = &kvm_vcpu_vm_ops; in kvm_vcpu_mmap()
3181 static int kvm_device_mmap(struct file *filp, struct vm_area_struct *vma) in kvm_device_mmap() argument
3186 return dev->ops->mmap(dev, vma); in kvm_device_mmap()