Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdddadcb authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent ebe60bbf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;