Home
last modified time | relevance | path

Searched refs:hva (Results 1 – 12 of 12) sorted by relevance

/linux-3.4.99/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c515 unsigned long gfn, hva, pfn; in kvmppc_book3s_hv_page_fault() local
577 hva = gfn_to_hva_memslot(memslot, gfn); in kvmppc_book3s_hv_page_fault()
578 npages = get_user_pages_fast(hva, 1, writing, pages); in kvmppc_book3s_hv_page_fault()
582 vma = find_vma(current->mm, hva); in kvmppc_book3s_hv_page_fault()
583 if (vma && vma->vm_start <= hva && hva + psize <= vma->vm_end && in kvmppc_book3s_hv_page_fault()
586 ((hva - vma->vm_start) >> PAGE_SHIFT); in kvmppc_book3s_hv_page_fault()
610 hva, NULL); in kvmppc_book3s_hv_page_fault()
701 static int kvm_handle_hva(struct kvm *kvm, unsigned long hva, in kvm_handle_hva() argument
716 if (hva >= start && hva < end) { in kvm_handle_hva()
717 gfn_t gfn_offset = (hva - start) >> PAGE_SHIFT; in kvm_handle_hva()
[all …]
Dbook3s.c378 hva_t hva = *eaddr; in kvmppc_ld() local
387 hva = kvmppc_pte_to_hva(vcpu, &pte, true); in kvmppc_ld()
388 if (kvm_is_error_hva(hva)) in kvmppc_ld()
391 if (copy_from_user(ptr, (void __user *)hva, size)) { in kvmppc_ld()
392 printk(KERN_INFO "kvmppc_ld at 0x%lx failed\n", hva); in kvmppc_ld()
Dbook3s_hv_rm_mmu.c106 static pte_t lookup_linux_pte(struct kvm_vcpu *vcpu, unsigned long hva, in lookup_linux_pte() argument
113 ptep = find_linux_pte_or_hugepte(vcpu->arch.pgdir, hva, &shift); in lookup_linux_pte()
138 unsigned long slot_fn, hva; in kvmppc_h_enter() local
200 hva = gfn_to_hva_memslot(memslot, gfn); in kvmppc_h_enter()
204 pte = lookup_linux_pte(vcpu, hva, writing, &pte_size); in kvmppc_h_enter()
De500_tlb.c614 unsigned long pfn, hva; in kvmppc_e500_shadow_map() local
627 hva = gfn_to_hva_memslot(slot, gfn); in kvmppc_e500_shadow_map()
633 vma = find_vma(current->mm, hva); in kvmppc_e500_shadow_map()
634 if (vma && hva >= vma->vm_start && in kvmppc_e500_shadow_map()
652 pfn = start + ((hva - vma->vm_start) >> PAGE_SHIFT); in kvmppc_e500_shadow_map()
697 } else if (vma && hva >= vma->vm_start && in kvmppc_e500_shadow_map()
Dbook3s_hv.c1214 unsigned long hva; in kvmppc_hv_setup_rma() local
1237 hva = memslot->userspace_addr; in kvmppc_hv_setup_rma()
1239 vma = find_vma(current->mm, hva); in kvmppc_hv_setup_rma()
1240 if (!vma || vma->vm_start > hva || (vma->vm_flags & VM_IO)) in kvmppc_hv_setup_rma()
1248 hva == vma->vm_start) in kvmppc_hv_setup_rma()
/linux-3.4.99/include/trace/events/
Dkvm.h197 TP_PROTO(ulong hva, struct kvm_memory_slot *slot, int ref),
198 TP_ARGS(hva, slot, ref),
201 __field( u64, hva )
207 __entry->hva = hva;
209 slot->base_gfn + ((hva - slot->userspace_addr) >> PAGE_SHIFT);
214 __entry->hva, __entry->gfn,
/linux-3.4.99/arch/powerpc/include/asm/
Dkvm_host.h54 extern int kvm_unmap_hva(struct kvm *kvm, unsigned long hva);
55 extern int kvm_age_hva(struct kvm *kvm, unsigned long hva);
56 extern int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
57 extern void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
/linux-3.4.99/include/linux/
Dkvm_types.h73 unsigned long hva; member
/linux-3.4.99/arch/x86/include/asm/
Dkvm_host.h932 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva);
933 int kvm_age_hva(struct kvm *kvm, unsigned long hva);
934 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
935 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
/linux-3.4.99/Documentation/virtual/kvm/
Dmmu.txt33 hva host virtual address
80 addresses (gpa->hva); note that two gpas may alias to the same hva, but not
98 - changes in the gpa->hpa translation (either through gpa->hva changes or
99 through hva->hpa changes)
301 - mmu notifier called with updated hva
/linux-3.4.99/arch/x86/kvm/
Dmmu.c1113 static int kvm_handle_hva(struct kvm *kvm, unsigned long hva, in kvm_handle_hva() argument
1131 if (hva >= start && hva < end) { in kvm_handle_hva()
1132 gfn_t gfn_offset = (hva - start) >> PAGE_SHIFT; in kvm_handle_hva()
1144 trace_kvm_age_page(hva, memslot, ret); in kvm_handle_hva()
1152 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) in kvm_unmap_hva() argument
1154 return kvm_handle_hva(kvm, hva, 0, kvm_unmap_rmapp); in kvm_unmap_hva()
1157 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) in kvm_set_spte_hva() argument
1159 kvm_handle_hva(kvm, hva, (unsigned long)&pte, kvm_set_pte_rmapp); in kvm_set_spte_hva()
1237 int kvm_age_hva(struct kvm *kvm, unsigned long hva) in kvm_age_hva() argument
1239 return kvm_handle_hva(kvm, hva, 0, kvm_age_rmapp); in kvm_age_hva()
[all …]
/linux-3.4.99/virt/kvm/
Dkvm_main.c1401 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, &nr_pages_avail); in kvm_gfn_to_hva_cache_init()
1402 if (!kvm_is_error_hva(ghc->hva) && nr_pages_avail >= nr_pages_needed) { in kvm_gfn_to_hva_cache_init()
1403 ghc->hva += offset; in kvm_gfn_to_hva_cache_init()
1411 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in kvm_gfn_to_hva_cache_init()
1413 if (kvm_is_error_hva(ghc->hva)) in kvm_gfn_to_hva_cache_init()
1438 if (kvm_is_error_hva(ghc->hva)) in kvm_write_guest_cached()
1441 r = __copy_to_user((void __user *)ghc->hva, data, len); in kvm_write_guest_cached()
1464 if (kvm_is_error_hva(ghc->hva)) in kvm_read_guest_cached()
1467 r = __copy_from_user(data, (void __user *)ghc->hva, len); in kvm_read_guest_cached()