diff options
author | Robin Murphy <robin.murphy@arm.com> | 2017-08-10 13:11:49 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2017-08-10 13:11:49 -0600 |
commit | db406cc0ac2d5d8314dfceab8dce3bb4daac9268 (patch) | |
tree | 8c70aa62bc16d88226fa42978b60590fe27f66fc /firmware/keyspan | |
parent | aae4e7a8bc44722fe70d58920a36916b1043195e (diff) |
vfio/type1: Cope with hardware MSI reserved regions
For ARM-based systems with a GICv3 ITS to provide interrupt isolation,
but hardware limitations which are worked around by having MSIs bypass
SMMU translation (e.g. HiSilicon Hip06/Hip07), VFIO neglects to check
for the IRQ_DOMAIN_FLAG_MSI_REMAP capability, (and thus erroneously
demands unsafe_interrupts) if a software-managed MSI region is absent.
Fix this by always checking for isolation capability at both the IRQ
domain and IOMMU domain levels, rather than predicating that on whether
MSIs require an IOMMU mapping (which was always slightly tenuous logic).
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'firmware/keyspan')
0 files changed, 0 insertions, 0 deletions