Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5245174rwd; Mon, 12 Jun 2023 02:04:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7J17fmhZcGOHDPU+eK5ENS22XWvWiomDFV1wXkSWpJvGlrcfesnkteYfgfDI0wAJ7aoFXP X-Received: by 2002:a17:902:e748:b0:1a9:6467:aa8d with SMTP id p8-20020a170902e74800b001a96467aa8dmr9916314plf.1.1686560688024; Mon, 12 Jun 2023 02:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686560688; cv=none; d=google.com; s=arc-20160816; b=mwxXsgIqOCRnB+gSPPEIZlCl5UFAzE6JOywlzp4JnvVfmvJeCjZ0/JsGlHNYITKqX3 /NbG3JiLNgjys5Wbcp4JDmE88+YShBuoFbYvwx5zO00F3ktpZKFccmq01crascpS6VVY tJPYpWA3zdOjZ+rayL55DDS78Ay1LdvPULbAwNlsDf7fJ+EVHCLXFPjM1GfyeKHJYmtx 3RlpIwYENwLAFMzsAM9SqmD8ZxC7ZYRov9xzBe3bwLTnqfIDRwNVbGUWXcoAkZpXginX 8DqGueHqfUGTDtmWOw5AM1LPEe4BUViOKw7U1KVvVvTwANCvQ3qsBza+xgbwwfpAUw6I 1Q8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0FwHw4Jr0MzZNYN45qoEJZoTLvrG5id2XmtyyGnttIY=; b=rmunWm4ohBFLfY1RhvEGdMJDQ3xezRUyCf+MtJwyCYTKEZRPDRKvNRidHvWeRII68I xpom0UiXK3bXSezy5d0L6Lb2TiEGTRJxY8trSGz+CAFk9+b7Ku8Vjfqy6Tp08/CbYHvS +WoMCV8ILT1/Op9f7XvOcQs6m0r9Brp8WUTa7wwU0R4Fttct7cQwoDje1wCYStDyL79c QtnjLvC5+cbeUClPA4AlbOIF2HD6F57ghD32H5bpku2aosWu5+gY/sub6uHPp1tuqtYo 2FacE0ollflyZZnC7dj/ZFWi+1dOzY3rDqxW7lZe+WV3K+sqxBGM/IAtlAekTMeUSwHj 1Qrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lkW+DjhM; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 f4-20020a170902ce8400b001a643dfb884si6961856plg.451.2023.06.12.02.04.35; Mon, 12 Jun 2023 02:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=lkW+DjhM; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S233589AbjFLI7E (ORCPT + 99 others); Mon, 12 Jun 2023 04:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233654AbjFLI6l (ORCPT ); Mon, 12 Jun 2023 04:58:41 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB5F419B4; Mon, 12 Jun 2023 01:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686560159; x=1718096159; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=22flWAwLQKUVCiLVo3wLZM/UdamCpYNSAYMlKHqR5Fo=; b=lkW+DjhM8mIOT6CeV/W1FnzCDcXfU0VO5mudjHldJ0eJvPNfyIz7VXYu cOV9c0oq+9SUjlT75xmVIk3zZEbfjUWKT14fCXbCUP9F6SU+bBw47KuJ3 +UXQ4VxMecwWjPm4PZkItG9JlVtYspIpCSZsDNxhBQDOQhqj03ij3MMW8 sdKRHVZsTjzY0EXlxKQMYE1xLyQFta0yv7+ooLt5AOUki5hmRn/IerY9B yeestsGOPLId5lOWrGpfvx9FACNakHdTdm53vpA419aoO6L5F72k82AvP D2Fs/5fosFYfzaZzwGDt9tfCEpI8edh6bK3dngUG5JjY6WU2XvgBM5/XC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="361326965" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="361326965" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 00:07:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="688510808" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="688510808" Received: from smizr3x-mobl3.ger.corp.intel.com (HELO box.shutemov.name) ([10.249.43.127]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 00:07:42 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id EB5A510CC1C; Mon, 12 Jun 2023 10:07:39 +0300 (+03) Date: Mon, 12 Jun 2023 10:07:39 +0300 From: "Kirill A . Shutemov" To: Michael Roth , bp@alien8.de Cc: kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, dovmurik@linux.ibm.com, tobin@ibm.com, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org, ashish.kalra@amd.com, nikunj.dadhania@amd.com, liam.merwick@oracle.com, zhi.a.wang@intel.com, kai.huang@intel.com, isaku.yamahata@intel.com Subject: Re: [PATCH RFC v9 05/51] x86/coco: move CONFIG_HAS_CC_PLATFORM check down into coco/Makefile Message-ID: <20230612070739.w4myumbiomlpynuj@box.shutemov.name> References: <20230612042559.375660-1-michael.roth@amd.com> <20230612042559.375660-6-michael.roth@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612042559.375660-6-michael.roth@amd.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org On Sun, Jun 11, 2023 at 11:25:13PM -0500, Michael Roth wrote: > Currently CONFIG_HAS_CC_PLATFORM is a prereq for building anything in > arch/x86/coco, but that is generally only applicable for guest support. > > For SEV-SNP, helpers related purely to host support will also live in > arch/x86/coco. To allow for CoCo-related host support code in > arch/x86/coco, move that check down into the Makefile and check for it > specifically when needed. Hm. TDX host support uses arch/x86/virt/vmx/tdx/. I think we need to be consistent here. IIRC, Borislav proposed the scheme that TDX uses. -- Kiryl Shutsemau / Kirill A. Shutemov