Lines Matching defs:kvm
12 * This file is based on arch/powerpc/kvm/44x_tlb.c,
20 #include <linux/kvm.h>
131 __write_host_tlbe(stlbe, mas0, vcpu_e500->vcpu.kvm->arch.lpid);
136 vcpu_e500->vcpu.kvm->arch.lpid);
334 struct kvm *kvm = vcpu_e500->vcpu.kvm;
342 mmu_seq = kvm->mmu_notifier_seq;
353 slot = gfn_to_memslot(vcpu_e500->vcpu.kvm, gfn);
358 mmap_read_lock(kvm->mm);
360 vma = find_vma(kvm->mm, hva);
444 mmap_read_unlock(kvm->mm);
462 spin_lock(&kvm->mmu_lock);
463 if (mmu_notifier_retry(kvm, mmu_seq)) {
473 * We are holding kvm->mmu_lock so a notifier invalidate
502 spin_unlock(&kvm->mmu_lock);
724 static int kvm_unmap_hva(struct kvm *kvm, unsigned long hva)
732 kvm_flush_remote_tlbs(kvm);
737 int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
741 kvm_unmap_hva(kvm, start);
746 int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end)
752 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva)
758 int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte)
761 kvm_unmap_hva(kvm, hva);