X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=virt%2Fkvm%2Fiommu.c;h=d5f3b8d1e09566037c5a48a7106d7c4c2a1c2a38;hb=208bca0860406d16398145ddd950036a737c3c9d;hp=967aba133a624c38dee5b61cbb9b1376b767f228;hpb=b48aeab65e9fc4b0c9757c5fbc1d722544eb8786;p=pandora-kernel.git diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index 967aba133a62..d5f3b8d1e095 100644 --- a/virt/kvm/iommu.c +++ b/virt/kvm/iommu.c @@ -232,12 +232,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;