Lines Matching refs:kvm
80 static void kvm_vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm) in kvm_vfio_group_set_kvm() argument
82 void (*fn)(struct vfio_group *, struct kvm *); in kvm_vfio_group_set_kvm()
88 fn(group, kvm); in kvm_vfio_group_set_kvm()
137 static void kvm_spapr_tce_release_vfio_group(struct kvm *kvm, in kvm_spapr_tce_release_vfio_group() argument
145 kvm_spapr_tce_release_iommu_group(kvm, grp); in kvm_spapr_tce_release_vfio_group()
176 kvm_arch_register_noncoherent_dma(dev->kvm); in kvm_vfio_update_coherency()
178 kvm_arch_unregister_noncoherent_dma(dev->kvm); in kvm_vfio_update_coherency()
229 kvm_arch_start_assignment(dev->kvm); in kvm_vfio_set_group()
233 kvm_vfio_group_set_kvm(vfio_group, dev->kvm); in kvm_vfio_set_group()
257 kvm_arch_end_assignment(dev->kvm); in kvm_vfio_set_group()
259 kvm_spapr_tce_release_vfio_group(dev->kvm, in kvm_vfio_set_group()
314 ret = kvm_spapr_tce_attach_iommu_group(dev->kvm, in kvm_vfio_set_group()
370 kvm_spapr_tce_release_vfio_group(dev->kvm, kvg->vfio_group); in kvm_vfio_destroy()
376 kvm_arch_end_assignment(dev->kvm); in kvm_vfio_destroy()
401 list_for_each_entry(tmp, &dev->kvm->devices, vm_node) in kvm_vfio_create()