]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/iommu/amd_iommu.c
iommu/amd: Use iommu_group_get_for_dev()
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 3 Jul 2014 15:51:30 +0000 (09:51 -0600)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Jul 2014 10:35:58 +0000 (12:35 +0200)
commit65d5352f12e16dc9321b1e4f8213793565c124be
tree959786bc1c8f4a24a2a259e5362eafd08b596a61
parentc1931090a22b96b223f2a3b8420076f044da7531
iommu/amd: Use iommu_group_get_for_dev()

The common iommu_group_get_for_dev() allows us to greatly simplify
our group lookup for a new device.  Also, since we insert IVRS
aliases into the PCI DMA alias quirks, we should alway come up with
the same results as the existing code.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h