iommu: Add device_group call-back to x86 iommu drivers
authorJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 21:51:39 +0000 (23:51 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 22:00:49 +0000 (00:00 +0200)
Set the device_group call-back to pci_device_group() for the
Intel VT-d and the AMD IOMMU driver.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/intel-iommu.c

index f82060e778a23bb7a8901ef2356d42b5363d93a6..8d74e38914ddfdaa1cd052059493c00905f769a6 100644 (file)
@@ -3189,6 +3189,7 @@ static const struct iommu_ops amd_iommu_ops = {
        .iova_to_phys = amd_iommu_iova_to_phys,
        .add_device = amd_iommu_add_device,
        .remove_device = amd_iommu_remove_device,
+       .device_group = pci_device_group,
        .get_dm_regions = amd_iommu_get_dm_regions,
        .put_dm_regions = amd_iommu_put_dm_regions,
        .pgsize_bitmap  = AMD_IOMMU_PGSIZES,
index 041bc1810a86131deb77152dd6b5a7cd43338a5d..884d9133c63697d48baf8b5b3668419b939131f3 100644 (file)
@@ -4872,6 +4872,7 @@ static const struct iommu_ops intel_iommu_ops = {
        .iova_to_phys   = intel_iommu_iova_to_phys,
        .add_device     = intel_iommu_add_device,
        .remove_device  = intel_iommu_remove_device,
+       .device_group   = pci_device_group,
        .pgsize_bitmap  = INTEL_IOMMU_PGSIZES,
 };