Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2408540rdg; Mon, 14 Aug 2023 01:11:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERMWiwBGkSU3QgQaTr3+8rTb8+VBcmpboVTcs+lyC1B14L/2LrVDfU9sKFKRBZs9kGqMNS X-Received: by 2002:a17:902:e54f:b0:1bc:7837:363e with SMTP id n15-20020a170902e54f00b001bc7837363emr9589525plf.16.1692000680398; Mon, 14 Aug 2023 01:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692000680; cv=none; d=google.com; s=arc-20160816; b=NbGzlkEKEZKZLwRQC7Fy8qEqbeqvFTtT+mWuwzjrAENppD2/YcaxMyuxTLXXShWsG2 CVjTBz3Oul2xV5/ILCMPW33AlNai9jjj95oAtlNKsQRaWAFhTtwFUtMNmu8dV/8AtBGW eU+4Yw8cqxuBW0FnuHl5K+Ex8fMbN3ni7g6LSYE+agfq9G/Mt3+6wNrqneUh82Ol1WND loeiUf0pFSYYfTm0OOsYvF8eLP/2/krnEq25CQfg/6CaBlf7I8PpuK4mteUgtYZvP1gb OntT/c5TNoJ5zzTCtYdS08d0Rc3+hFvsaK+hC4mFXxfFyp9QzdKHTurPglPw2F/PUct2 NiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=3l08JUBTWlmcim7FU7HddRExeN24dbKJM7pVIxivluE=; fh=g59hbjujPVAD10Xm2jVSdhu3Aeg/RAci4F4shOEY1pU=; b=OsTnTd5kAEwEFPZd9CgwewYmIR/zb8uZkpkRIUNrh+hQCH57iKFl5lWj6w+CctDTJT Y2GEeCJ0pn0VKbCEBpRrlTpNBpHTA2FmmeFMtppTEfctZ7t3yHjheKLOpVKH9ADSIUe6 M3VKBUKJRbp6+pCjppDorph4iG+LsDQISKy++Vmlih5L6YeOoieSIruO+1aY2azxqh70 emVOUxkHRqEgERgl2kFTMsS8t51ycHihTxcdoD3zVGK5Adv5QfsvuBQ9oxWKhok8IfzP dBqpzLEHofVmtuv6sgo4uWyY7n0vZbZa6SJ7IQoQCqtR4sUbqb6upFNOTViH1HN4EVgT DM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UNwpLu4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170903120a00b001b81e6ce809si7839498plh.5.2023.08.14.01.11.08; Mon, 14 Aug 2023 01:11:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UNwpLu4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234266AbjHNHnr (ORCPT + 99 others); Mon, 14 Aug 2023 03:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234251AbjHNHnR (ORCPT ); Mon, 14 Aug 2023 03:43:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECFA94 for ; Mon, 14 Aug 2023 00:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691998996; x=1723534996; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1QNSa8PfJ6fHxxDbOfg/mWMGFnDXUsLlbGCHGWdkA9Q=; b=UNwpLu4Tu/3zGPB7WrtkMbq0YdGNa/33OC8BM8IfUQWTH2sF/Ba/5g1g u6HF7cJn1grSSbvXJLCpBJZXNDTyMIA9ajKsfc4+PQG7wykfwRQR4wCSh fgEwUojwSR7kIvxY/O1qxBp6CwP3v1b2JuPtf/BajxqNALo3OB0aRWy+m JDF31Ve9ZbSXYXUOlI/KjJHKGyBsBmZagYxizmqwJzSx9zpJ9yUnkvjJ3 a6XT/xTMx1cZHIbXZqGYAOLJFnLnqmHueMpveEDvPY7zQVVLynW1xTJEf Yg2Av984t2Sdi1InsKYTo+MwBkGivp6pZWDGEjQp8fh9LBVNE+pa3L0p2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="370882738" X-IronPort-AV: E=Sophos;i="6.01,172,1684825200"; d="scan'208";a="370882738" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 00:43:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="736445243" X-IronPort-AV: E=Sophos;i="6.01,172,1684825200"; d="scan'208";a="736445243" Received: from navanban-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.209.127.25]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 00:43:15 -0700 Subject: [PATCH v2 1/5] virt: coco: Add a coco/Makefile and coco/Kconfig From: Dan Williams To: linux-coco@lists.linux.dev Cc: peterz@infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org Date: Mon, 14 Aug 2023 00:43:15 -0700 Message-ID: <169199899543.1782217.492316368774728659.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <169199898909.1782217.10899362240465838600.stgit@dwillia2-xfh.jf.intel.com> References: <169199898909.1782217.10899362240465838600.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for adding another coco build target, relieve drivers/virt/Makefile of the responsibility to track new compilation unit additions to drivers/virt/coco/, and do the same for drivers/virt/Kconfig. Signed-off-by: Dan Williams --- drivers/virt/Kconfig | 6 +----- drivers/virt/Makefile | 4 +--- drivers/virt/coco/Kconfig | 9 +++++++++ drivers/virt/coco/Makefile | 7 +++++++ 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 drivers/virt/coco/Kconfig create mode 100644 drivers/virt/coco/Makefile diff --git a/drivers/virt/Kconfig b/drivers/virt/Kconfig index f79ab13a5c28..40129b6f0eca 100644 --- a/drivers/virt/Kconfig +++ b/drivers/virt/Kconfig @@ -48,10 +48,6 @@ source "drivers/virt/nitro_enclaves/Kconfig" source "drivers/virt/acrn/Kconfig" -source "drivers/virt/coco/efi_secret/Kconfig" - -source "drivers/virt/coco/sev-guest/Kconfig" - -source "drivers/virt/coco/tdx-guest/Kconfig" +source "drivers/virt/coco/Kconfig" endif diff --git a/drivers/virt/Makefile b/drivers/virt/Makefile index e9aa6fc96fab..f29901bd7820 100644 --- a/drivers/virt/Makefile +++ b/drivers/virt/Makefile @@ -9,6 +9,4 @@ obj-y += vboxguest/ obj-$(CONFIG_NITRO_ENCLAVES) += nitro_enclaves/ obj-$(CONFIG_ACRN_HSM) += acrn/ -obj-$(CONFIG_EFI_SECRET) += coco/efi_secret/ -obj-$(CONFIG_SEV_GUEST) += coco/sev-guest/ -obj-$(CONFIG_INTEL_TDX_GUEST) += coco/tdx-guest/ +obj-y += coco/ diff --git a/drivers/virt/coco/Kconfig b/drivers/virt/coco/Kconfig new file mode 100644 index 000000000000..fc5c64f04c4a --- /dev/null +++ b/drivers/virt/coco/Kconfig @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Confidential computing related collateral +# +source "drivers/virt/coco/efi_secret/Kconfig" + +source "drivers/virt/coco/sev-guest/Kconfig" + +source "drivers/virt/coco/tdx-guest/Kconfig" diff --git a/drivers/virt/coco/Makefile b/drivers/virt/coco/Makefile new file mode 100644 index 000000000000..55302ef719ad --- /dev/null +++ b/drivers/virt/coco/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Confidential computing related collateral +# +obj-$(CONFIG_EFI_SECRET) += efi_secret/ +obj-$(CONFIG_SEV_GUEST) += sev-guest/ +obj-$(CONFIG_INTEL_TDX_GUEST) += tdx-guest/