Message ID | 1411483586-29304-4-git-send-email-a.motakis@virtualopensystems.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D2E8BEEA5 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Sep 2014 14:49:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E78520125 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Sep 2014 14:49:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B317B201D3 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Sep 2014 14:49:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWRN4-0007E5-BD; Tue, 23 Sep 2014 14:47:14 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWRN1-0006xg-Nb for linux-arm-kernel@lists.infradead.org; Tue, 23 Sep 2014 14:47:12 +0000 Received: by mail-wi0-f177.google.com with SMTP id q5so5239606wiv.4 for <linux-arm-kernel@lists.infradead.org>; Tue, 23 Sep 2014 07:46:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=E/A6F7m5/wvIdguvenG6eIX+eT3wdMH8drFggdEc5kc=; b=myMFMVPk5/Gf2tCtK1nkU5m9D7jc9hV6nJXv9qTd1kjSw+5x5PAnuwBk7SKIs31GqH IId/KbI32J2M9Tb2Gzx9D900IVEK2b+kY/YtT1MVmoXeQsBTlfFKN8XpY3TCYRrOGCd+ 1UvrMMTTmJHLEQnanyCB0pQxS4aoxC992ZQGalV8ItuctikxNQYfvlVJDmkpwmaLCRel YuZPYEujTOFgBB76xGU+NVvtGC0ZsinEZdyy0iOrAr2sJmKvGZM6irXXIxVbzAj7qTTJ 327SKzoXS+EkjAWHqGXAwjw9hyYe4qNyTNM4Pr0uawNT4TNEWYNcr623PbzKxXIbM9LI Yc3Q== X-Gm-Message-State: ALoCoQmfxNPWdM3G4xG8Dx0wNsh/0BtixY4PyxVu6b6u1w8GOyZda31erX7YKpqPSXA8zrGbGTNE X-Received: by 10.180.83.195 with SMTP id s3mr24145667wiy.12.1411483609461; Tue, 23 Sep 2014 07:46:49 -0700 (PDT) Received: from localhost.localdomain (home.tvelocity.eu. [82.67.68.96]) by mx.google.com with ESMTPSA id ic8sm16151809wjb.25.2014.09.23.07.46.46 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 07:46:48 -0700 (PDT) From: Antonios Motakis <a.motakis@virtualopensystems.com> To: alex.williamson@redhat.com, kvmarm@lists.cs.columbia.edu, iommu@lists.linux-foundation.org Subject: [PATCHv7 03/26] iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver Date: Tue, 23 Sep 2014 16:46:02 +0200 Message-Id: <1411483586-29304-4-git-send-email-a.motakis@virtualopensystems.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1411483586-29304-1-git-send-email-a.motakis@virtualopensystems.com> References: <1411483586-29304-1-git-send-email-a.motakis@virtualopensystems.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140923_074711_957221_29C66893 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: kim.phillips@freescale.com, kvm@vger.kernel.org, eric.auger@linaro.org, marc.zyngier@arm.com, Joerg Roedel <joro@8bytes.org>, will.deacon@arm.com, open list <linux-kernel@vger.kernel.org>, "moderated list:ARM SMMU DRIVER" <linux-arm-kernel@lists.infradead.org>, Antonios Motakis <a.motakis@virtualopensystems.com>, tech@virtualopensystems.com, christoffer.dall@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index c7cbdda..7c0fa25 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1539,6 +1539,8 @@ static int arm_smmu_domain_has_cap(struct iommu_domain *domain, return features & ARM_SMMU_FEAT_COHERENT_WALK; case IOMMU_CAP_INTR_REMAP: return 1; /* MSIs are just memory writes */ + case IOMMU_CAP_NOEXEC: + return 1; default: return 0; }
The ARM SMMU supports the IOMMU_NOEXEC protection flag. Add the corresponding IOMMU capability. Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com> --- drivers/iommu/arm-smmu.c | 2 ++ 1 file changed, 2 insertions(+)