iommu/intel: Implement iommu_device_group
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 21 Oct 2011 19:56:11 +0000 (15:56 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 15 Nov 2011 11:22:30 +0000 (12:22 +0100)
commit70ae6f0d55bd216b2f773fa5fa5018c0490a9e50
treed90c8d432e8f1728ccd3c54daee13d6e3e99ed49
parent1460432cb513f0c16136ed132c20ecfbf8ccf942
iommu/intel: Implement iommu_device_group

We generally have BDF granularity for devices, so we just need
to make sure devices aren't hidden behind PCIe-to-PCI bridges.
We can then make up a group number that's simply the concatenated
seg|bus|dev|fn so we don't have to track them (not that users
should depend on that).

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/intel-iommu.c