diff options
author | Tom Lyon <pugs@cisco.com> | 2010-07-02 16:56:14 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-07-19 15:44:25 +0200 |
commit | 323f99cbc35c52a65dea9d072b3ecf1e662240d2 (patch) | |
tree | db4420fb391465df818949a2190e8acd8637164f /drivers/pci | |
parent | 1c5474a65bf15a4cb162dfff86d6d0b5a08a740c (diff) | |
download | kernel_samsung_tuna-323f99cbc35c52a65dea9d072b3ecf1e662240d2.zip kernel_samsung_tuna-323f99cbc35c52a65dea9d072b3ecf1e662240d2.tar.gz kernel_samsung_tuna-323f99cbc35c52a65dea9d072b3ecf1e662240d2.tar.bz2 |
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 <pugs@cisco.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/intel-iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index c9171be..6a5af18 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c @@ -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; } |