Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp332856pxa; Wed, 5 Aug 2020 02:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyrh/DWURCz0pnV3c1kqIr8rKun+i9BkXkFb14zD/AdGpO+V3Dru7t5ED8wa70rih1UaJ/ X-Received: by 2002:a17:906:1f8e:: with SMTP id t14mr2283674ejr.336.1596619017416; Wed, 05 Aug 2020 02:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596619017; cv=none; d=google.com; s=arc-20160816; b=hxLyWNHX0fv+/83s+has5/SUF4CFTFvbcLAaESGFvViz91EE3tQZnRLO7n23/HfLla OU5xiK9TGO9EJCVjq306DNd9fGehLjK6PupsQk3HLus8o0Y5MrH3+nKgn/qLy53Cj2OM gRvaRtAcwhZuFCjX/8iuh4KpLXMWy/m12qUUZS4oQbk1CVI6sfu7Q0ZTY8kKmZvR6wFY OAyQ/6pLE5TeSYYaFfGaiKvWqrO76b8PzY+0M/npNwLZwet2j+6CQXQhS1N/M5UaZpOS vzbT4AfZjJSB77ov7o8O/C4MjcZT9aXs/OE/JKmc9SJaDSF80VissTy+hbyETIfPEig6 6KYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=IhOfX0FdbhuTsJnFCKPjFIRuWekUQjyAqOblHb3gSyM=; b=EhWRQJiTS6bl+nuZ6NFC6ktBPnuxTBVBTGs0CSxs1jAYIp/G5GgeNFvirrPiK6Y+DK J/O4hI3JYDqkdjSoXI1uWYRToOsyF7B5oDjuZfwdOSmEw8aDl3H8k8KSIDa8T0/RjJ/y SByS3UxgwcfWeFVvzsaluLy97TNXZtJXTESpB4i3H2VI9/zsgfIUSZNZT+yJ/zvRg8Qt v7WmJs2NxU5mXgA5wbFTxvtcD4FMBe21Sx6bgls7SSjOeYST2hRUiZx/NerIcZzMVf6Y xldAv5eqPMwTny1BqKPvKjEEtuBZkFqHiP/g0rCfCw6bRBBxGul1hyvd5TJxEBHXGnsr awWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=QHFfJxNb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si889241ejd.617.2020.08.05.02.16.30; Wed, 05 Aug 2020 02:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=QHFfJxNb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbgHEJPd (ORCPT + 99 others); Wed, 5 Aug 2020 05:15:33 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:13521 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728562AbgHEJNE (ORCPT ); Wed, 5 Aug 2020 05:13:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1596618783; x=1628154783; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IhOfX0FdbhuTsJnFCKPjFIRuWekUQjyAqOblHb3gSyM=; b=QHFfJxNbYvsg7pkb1bSB5D0xHXrco4LQGjVgWrEN2DeB25ytOrT/AUc0 +JEUQ1uR8k/BQElF9sDMFjEfW+q6s6EP/yNi9YK8PK3Ahopmjd/qBduYm gWmghN1gZACCXX8ozgSn5aSoMMoWJIU1JUcF5/vuUr24w44yf+E1tu7u3 M=; IronPort-SDR: 1b1Ugg08TGp1TA6cskxPc13+l2H0uzWKHNfoTIb4hNUvItyeHvLfIzBjwmnxQNpzw2jgUm8Luu EhkW/njRQM0Q== X-IronPort-AV: E=Sophos;i="5.75,436,1589241600"; d="scan'208";a="46064989" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2c-1968f9fa.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 05 Aug 2020 09:12:59 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2c-1968f9fa.us-west-2.amazon.com (Postfix) with ESMTPS id B46A8A2263; Wed, 5 Aug 2020 09:12:57 +0000 (UTC) Received: from EX13D16EUB003.ant.amazon.com (10.43.166.99) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 09:12:56 +0000 Received: from 38f9d34ed3b1.ant.amazon.com (10.43.162.248) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 09:12:47 +0000 From: Andra Paraschiv To: linux-kernel CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , "David Duncan" , Bjoern Doebel , "David Woodhouse" , Frank van der Linden , Alexander Graf , Greg KH , "Karen Noel" , Martin Pohlack , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , "Stefan Hajnoczi" , Stewart Smith , "Uwe Dannowski" , Vitaly Kuznetsov , kvm , ne-devel-upstream , Andra Paraschiv Subject: [PATCH v6 14/18] nitro_enclaves: Add Kconfig for the Nitro Enclaves driver Date: Wed, 5 Aug 2020 12:10:13 +0300 Message-ID: <20200805091017.86203-15-andraprs@amazon.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20200805091017.86203-1-andraprs@amazon.com> References: <20200805091017.86203-1-andraprs@amazon.com> MIME-Version: 1.0 X-Originating-IP: [10.43.162.248] X-ClientProxiedBy: EX13D37UWA003.ant.amazon.com (10.43.160.25) To EX13D16EUB003.ant.amazon.com (10.43.166.99) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Andra Paraschiv --- Changelog v5 -> v6 * No changes. v4 -> v5 * Add arch dependency for Arm / x86. v3 -> v4 * Add PCI and SMP dependencies. v2 -> v3 * Remove the GPL additional wording as SPDX-License-Identifier is already in place. v1 -> v2 * Update path to Kconfig to match the drivers/virt/nitro_enclaves directory. * Update help in Kconfig. --- drivers/virt/Kconfig | 2 ++ drivers/virt/nitro_enclaves/Kconfig | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 drivers/virt/nitro_enclaves/Kconfig diff --git a/drivers/virt/Kconfig b/drivers/virt/Kconfig index cbc1f25c79ab..80c5f9c16ec1 100644 --- a/drivers/virt/Kconfig +++ b/drivers/virt/Kconfig @@ -32,4 +32,6 @@ config FSL_HV_MANAGER partition shuts down. source "drivers/virt/vboxguest/Kconfig" + +source "drivers/virt/nitro_enclaves/Kconfig" endif diff --git a/drivers/virt/nitro_enclaves/Kconfig b/drivers/virt/nitro_enclaves/Kconfig new file mode 100644 index 000000000000..78eb7293d2f7 --- /dev/null +++ b/drivers/virt/nitro_enclaves/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +# Amazon Nitro Enclaves (NE) support. +# Nitro is a hypervisor that has been developed by Amazon. + +config NITRO_ENCLAVES + tristate "Nitro Enclaves Support" + depends on (ARM64 || X86) && HOTPLUG_CPU && PCI && SMP + help + This driver consists of support for enclave lifetime management + for Nitro Enclaves (NE). + + To compile this driver as a module, choose M here. + The module will be called nitro_enclaves. -- 2.20.1 (Apple Git-117) Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.