]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
vfio/type1: Allow transparent MSI IOVA allocation
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Jan 2017 20:58:01 +0000 (20:58 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 21 Feb 2017 17:00:31 +0000 (10:00 -0700)
commit5be039c2374fe492cfb883725122875e7ecc87e2
tree3cb34a3b24a23645a84df0b91793242ece022bb4
parent6e8619c50a327ee9c0c5440291782685187dfea9
vfio/type1: Allow transparent MSI IOVA allocation

When attaching a group to the container, check the group's
reserved regions and test whether the IOMMU translates MSI
transactions. If yes, we initialize an IOVA allocator through
the iommu_get_msi_cookie API. This will allow the MSI IOVAs
to be transparently allocated on MSI controller's compose().

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 5d704992189fe8683a23f583a2f4f137a9b9d28b)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/vfio/vfio_iommu_type1.c