Lines Matching refs:domain
69 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_iommu_map_pages() local
73 if (!domain) in kvm_iommu_map_pages()
88 if (iommu_iova_to_phys(domain, gfn_to_gpa(gfn))) { in kvm_iommu_map_pages()
119 r = iommu_map(domain, gfn_to_gpa(gfn), pfn_to_hpa(pfn), in kvm_iommu_map_pages()
162 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_assign_device() local
166 if (!domain) in kvm_assign_device()
173 r = iommu_attach_device(domain, &pdev->dev); in kvm_assign_device()
214 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_deassign_device() local
218 if (!domain) in kvm_deassign_device()
225 iommu_detach_device(domain, &pdev->dev); in kvm_deassign_device()
288 struct iommu_domain *domain; in kvm_iommu_put_pages() local
293 domain = kvm->arch.iommu_domain; in kvm_iommu_put_pages()
298 if (!domain) in kvm_iommu_put_pages()
306 phys = iommu_iova_to_phys(domain, gfn_to_gpa(gfn)); in kvm_iommu_put_pages()
310 size = iommu_unmap(domain, gfn_to_gpa(gfn), PAGE_SIZE); in kvm_iommu_put_pages()
344 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_iommu_unmap_guest() local
347 if (!domain) in kvm_iommu_unmap_guest()
355 iommu_domain_free(domain); in kvm_iommu_unmap_guest()