aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2014-09-05 04:56:05 -0400
committerJoerg Roedel <jroedel@suse.de>2014-09-25 09:47:45 -0400
commiteb165f0584d2c073dd343bdc609e2f94d143037e (patch)
tree88dde438e638afc375d35aad91df0a8c3666e991 /drivers/vfio
parentee5ba30ff75277cbfcfce2bb3b54211be5105a87 (diff)
vfio: Convert to use new iommu_capable() API function
Cc: Alex Williamson <alex.williamson@redhat.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/vfio_iommu_type1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c
index 0734fbe5b651..562f686b4cba 100644
--- a/drivers/vfio/vfio_iommu_type1.c
+++ b/drivers/vfio/vfio_iommu_type1.c
@@ -713,14 +713,14 @@ static int vfio_iommu_type1_attach_group(void *iommu_data,
713 list_add(&group->next, &domain->group_list); 713 list_add(&group->next, &domain->group_list);
714 714
715 if (!allow_unsafe_interrupts && 715 if (!allow_unsafe_interrupts &&
716 !iommu_domain_has_cap(domain->domain, IOMMU_CAP_INTR_REMAP)) { 716 !iommu_capable(bus, IOMMU_CAP_INTR_REMAP)) {
717 pr_warn("%s: No interrupt remapping support. Use the module param \"allow_unsafe_interrupts\" to enable VFIO IOMMU support on this platform\n", 717 pr_warn("%s: No interrupt remapping support. Use the module param \"allow_unsafe_interrupts\" to enable VFIO IOMMU support on this platform\n",
718 __func__); 718 __func__);
719 ret = -EPERM; 719 ret = -EPERM;
720 goto out_detach; 720 goto out_detach;
721 } 721 }
722 722
723 if (iommu_domain_has_cap(domain->domain, IOMMU_CAP_CACHE_COHERENCY)) 723 if (iommu_capable(bus, IOMMU_CAP_CACHE_COHERENCY))
724 domain->prot |= IOMMU_CACHE; 724 domain->prot |= IOMMU_CACHE;
725 725
726 /* 726 /*