From: Joerg Roedel Date: Mon, 2 Jul 2012 16:38:13 +0000 (+0200) Subject: iommu/amd: Report irq remapping through IOMMU-API X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bdddadcb0783b965f524b6f43c475390f5f76765;p=linux-beck.git 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 --- 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, switch (cap) { case IOMMU_CAP_CACHE_COHERENCY: return 1; + case IOMMU_CAP_INTR_REMAP: + return irq_remapping_enabled; } return 0;