aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-07-02 12:38:13 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-09-28 11:43:54 -0400
commitbdddadcb0783b965f524b6f43c475390f5f76765 (patch)
treee46a1dd6d91fd18efd1ca252c533eb0ab19fca0f /drivers/iommu
parentebe60bbfdc3914bfb833595f36444a2f76a3cc0c (diff)
iommu/amd: Report irq remapping through IOMMU-API
Report the availability of irq remapping through the IOMMU-API to allow KVM device passthrough again without additional module parameter overrides. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 33f144f7d676..312dd4dd4791 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3353,6 +3353,8 @@ static int amd_iommu_domain_has_cap(struct iommu_domain *domain,
3353 switch (cap) { 3353 switch (cap) {
3354 case IOMMU_CAP_CACHE_COHERENCY: 3354 case IOMMU_CAP_CACHE_COHERENCY:
3355 return 1; 3355 return 1;
3356 case IOMMU_CAP_INTR_REMAP:
3357 return irq_remapping_enabled;
3356 } 3358 }
3357 3359
3358 return 0; 3360 return 0;