iommu-api: Extension to check for interrupt remapping

This patch allows IOMMU users to determine whether the
hardware and software support safe, isolated interrupt
remapping.  Not all Intel IOMMUs have the hardware, and the
software for AMD is not there yet.

Signed-off-by: Tom Lyon <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
Tom Lyon 2010-07-02 16:56:14 -04:00 • committed by Joerg Roedel
commit 323f99cbc3
2 changed files with 3 additions and 0 deletions

View file

@ -3698,6 +3698,8 @@ static int intel_iommu_domain_has_cap(struct iommu_domain *domain,
if (cap == IOMMU_CAP_CACHE_COHERENCY)
return dmar_domain->iommu_snooping;
if (cap == IOMMU_CAP_INTR_REMAP)
return intr_remapping_enabled;
return 0;
}