]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
iommu: add capability IOMMU_CAP_NOEXEC
authorAntonios Motakis <a.motakis@virtualopensystems.com>
Mon, 13 Oct 2014 13:06:17 +0000 (14:06 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 14:41:38 +0000 (14:41 +0000)
Some IOMMUs accept an IOMMU_NOEXEC protection flag in addition to
IOMMU_READ and IOMMU_WRITE. Expose this as an IOMMU capability.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Acked-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/iommu.h

index f47383a05d34ae0215e9a34154b537085dfd3648..e438b30f062b799dfcd754ea02cbac8829e55506 100644 (file)
@@ -61,6 +61,7 @@ enum iommu_cap {
        IOMMU_CAP_CACHE_COHERENCY,      /* IOMMU can enforce cache coherent DMA
                                           transactions */
        IOMMU_CAP_INTR_REMAP,           /* IOMMU supports interrupt isolation */
+       IOMMU_CAP_NOEXEC,               /* IOMMU_NOEXEC flag */
 };
 
 /*