• Home
  • Raw
  • Download

Lines Matching refs:hva

932 	hva_t hva = memslot->userspace_addr;  in stage2_unmap_memslot()  local
935 hva_t reg_end = hva + size; in stage2_unmap_memslot()
950 struct vm_area_struct *vma = find_vma(current->mm, hva); in stage2_unmap_memslot()
959 vm_start = max(hva, vma->vm_start); in stage2_unmap_memslot()
966 hva = vm_end; in stage2_unmap_memslot()
967 } while (hva < reg_end); in stage2_unmap_memslot()
1619 unsigned long hva, in fault_supports_stage2_huge_mapping() argument
1671 return (hva & ~(map_size - 1)) >= uaddr_start && in fault_supports_stage2_huge_mapping()
1672 (hva & ~(map_size - 1)) + map_size <= uaddr_end; in fault_supports_stage2_huge_mapping()
1676 struct kvm_memory_slot *memslot, unsigned long hva, in user_mem_abort() argument
1703 vma = find_vma_intersection(current->mm, hva, hva + 1); in user_mem_abort()
1705 kvm_err("Failed to find VMA for hva 0x%lx\n", hva); in user_mem_abort()
1713 !fault_supports_stage2_huge_mapping(memslot, hva, vma_pagesize)) { in user_mem_abort()
1750 kvm_send_hwpoison_signal(hva, vma); in user_mem_abort()
1792 if (fault_supports_stage2_huge_mapping(memslot, hva, PMD_SIZE) && in user_mem_abort()
1926 unsigned long hva; in kvm_handle_guest_abort() local
1968 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in kvm_handle_guest_abort()
1970 if (kvm_is_error_hva(hva) || (write_fault && !writable)) { in kvm_handle_guest_abort()
2013 ret = user_mem_abort(vcpu, fault_ipa, memslot, hva, fault_status); in kvm_handle_guest_abort()
2095 int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) in kvm_set_spte_hva() argument
2097 unsigned long end = hva + PAGE_SIZE; in kvm_set_spte_hva()
2104 trace_kvm_set_spte_hva(hva); in kvm_set_spte_hva()
2112 handle_hva_to_gpa(kvm, hva, end, &kvm_set_spte_handler, &stage2_pte); in kvm_set_spte_hva()
2161 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) in kvm_test_age_hva() argument
2165 trace_kvm_test_age_hva(hva); in kvm_test_age_hva()
2166 return handle_hva_to_gpa(kvm, hva, hva + PAGE_SIZE, in kvm_test_age_hva()
2297 hva_t hva = mem->userspace_addr; in kvm_arch_prepare_memory_region() local
2298 hva_t reg_end = hva + mem->memory_size; in kvm_arch_prepare_memory_region()
2327 struct vm_area_struct *vma = find_vma(current->mm, hva); in kvm_arch_prepare_memory_region()
2345 vm_start = max(hva, vma->vm_start); in kvm_arch_prepare_memory_region()
2368 hva = vm_end; in kvm_arch_prepare_memory_region()
2369 } while (hva < reg_end); in kvm_arch_prepare_memory_region()