diff options
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
232 | { | 232 | { |
233 | int r; | 233 | int r; |
234 | 234 | ||
235 | if (!iommu_found()) { | 235 | if (!iommu_present(&pci_bus_type)) { |
236 | printk(KERN_ERR "%s: iommu not found\n", __func__); | 236 | printk(KERN_ERR "%s: iommu not found\n", __func__); |
237 | return -ENODEV; | 237 | return -ENODEV; |
238 | } | 238 | } |
239 | 239 | ||
240 | kvm->arch.iommu_domain = iommu_domain_alloc(); | 240 | kvm->arch.iommu_domain = iommu_domain_alloc(&pci_bus_type); |
241 | if (!kvm->arch.iommu_domain) | 241 | if (!kvm->arch.iommu_domain) |
242 | return -ENOMEM; | 242 | return -ENOMEM; |
243 | 243 | ||