From: Antonios Motakis Date: Mon, 13 Oct 2014 13:06:18 +0000 (+0100) Subject: iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0029a8dd6c807e04b119ec9416510d30936f45e6;p=deliverable%2Flinux.git iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver The ARM SMMU supports the IOMMU_NOEXEC protection flag. Add the corresponding IOMMU capability. Signed-off-by: Antonios Motakis Signed-off-by: Will Deacon --- diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 566c1769d9bd..c8fc02f111c5 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1569,6 +1569,8 @@ static bool arm_smmu_capable(enum iommu_cap cap) return true; case IOMMU_CAP_INTR_REMAP: return true; /* MSIs are just memory writes */ + case IOMMU_CAP_NOEXEC: + return true; default: return false; }