]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
vfio/type1: Check MSI remapping at irq domain level
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Jan 2017 20:58:02 +0000 (20:58 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 21 Feb 2017 17:00:31 +0000 (10:00 -0700)
commite6c347943f6e74f666d76eb8499888e8f323d6ce
treea3b9e7445bd9aefe7d58b1ba87c9cd85bb12e434
parent5be039c2374fe492cfb883725122875e7ecc87e2
vfio/type1: Check MSI remapping at irq domain level

In case the IOMMU translates MSI transactions (typical case
on ARM), we check MSI remapping capability at IRQ domain
level. Otherwise it is checked at IOMMU level.

At this stage the arm-smmu-(v3) still advertise the
IOMMU_CAP_INTR_REMAP capability at IOMMU level. This will be
removed in subsequent patches.

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 9d72f87babf144ff3ca5d85655c710de05110038)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/vfio/vfio_iommu_type1.c