iommu/core: Convert iommu_found to iommu_present
[firefly-linux-kernel-4.4.55.git] / virt / kvm / iommu.c
index 78c80f67f535f97055d312aa946c109bcfdcd424..d149940608da17cfd748691f0b8427a4a60f78dd 100644 (file)
@@ -228,12 +228,12 @@ int kvm_iommu_map_guest(struct kvm *kvm)
 {
        int r;
 
-       if (!iommu_found()) {
+       if (!iommu_present(&pci_bus_type)) {
                printk(KERN_ERR "%s: iommu not found\n", __func__);
                return -ENODEV;
        }
 
-       kvm->arch.iommu_domain = iommu_domain_alloc();
+       kvm->arch.iommu_domain = iommu_domain_alloc(&pci_bus_type);
        if (!kvm->arch.iommu_domain)
                return -ENOMEM;