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)
committerWill Deacon <will.deacon@arm.com>
Mon, 23 Jan 2017 15:00:46 +0000 (15:00 +0000)
commit9d72f87babf144ff3ca5d85655c710de05110038
treeb5587e8e0f1bbfb1e362493c3c231f4359f503e4
parent5d704992189fe8683a23f583a2f4f137a9b9d28b
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>
drivers/vfio/vfio_iommu_type1.c