OSDN Git Service

iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver
authorAntonios Motakis <a.motakis@virtualopensystems.com>
Mon, 13 Oct 2014 13:06:18 +0000 (14:06 +0100)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:40 +0000 (11:14 -0700)
The ARM SMMU supports the IOMMU_NOEXEC protection flag. Add the
corresponding IOMMU capability.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c

index 505ff73..684a431 100644 (file)
@@ -2546,6 +2546,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;
        }