Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2312916pxb; Wed, 9 Feb 2022 15:56:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxTSlUboPzGm9NQOupqH+PszY4G/AMnvFw7jJbC3wUISz7EDZV5fmiSfu0rpmoxbpDehbE X-Received: by 2002:a63:5166:: with SMTP id r38mr3892842pgl.99.1644450973996; Wed, 09 Feb 2022 15:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644450973; cv=none; d=google.com; s=arc-20160816; b=YF7SD9O86kqWzIDNQB87xYGExrOYaoz4ECwEuO8XfYDNvMzjygyZ1DAzddDfKd2yLo RWjZTqKboq6h8pMQaBl6CXcaik42JMvBmnfeCm0sUZBOYMtfUYy1aAJBicutFGb2Aa1K Hx1FBDSqyglMConeGJZaw8yk+Ex+KIT+M+H2nNPYGWBi60AVkpHvINKf+/BSSp+2K9Z1 onUZ+fiEstLZMo3gMF4ra8A1aNrRCX4Yt+5XxOYcN2vs+LBXNEi16RGuFxT8G5uqxkl3 GYMUBH8JhC4Dxtp+dzSIMlFJRELunZXGHmOvg0E1oLykw0udjPMEWZ0rW2pjnQVWhUOG rVdA== 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=3bN14m9k77kQn4q/kQOVP6/l1JRFJq8/BMG6LYEanUg=; b=uTr17ukIpGIawkoViwHA2xeVwGM7PK33LFup2cPnOkElp8Tn5v+mvNZa+WUXJdLmSV 6i/nI6Wt6NzIiv5PGhT5z2bSjAIKf+10I3LUqrS3anSg3lphiLa5eNs3pCvnbkIdemUM DygZL/U1giQwxzEL8luV/HTOnBx7IXg6qoqwZLcsU1ge5yrw399VcG43l1k4JEoWlDfU nxWmUuquvTnwBByeQx7EdeWRdNV3IWbxgiLUTiAOH9N18xCACSG6pA14jY4RPCrF8zcb vbNgGzr1J6yJQ/mc49CGWiozS998SF5SXAGauGLecrlXacxcSbNre9dNfX7gdadMV9Ok fnkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=obf4W4vC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o12si351935pll.457.2022.02.09.15.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:56:13 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=obf4W4vC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29608E06786E; Wed, 9 Feb 2022 15:26:03 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbiBIUhH (ORCPT + 99 others); Wed, 9 Feb 2022 15:37:07 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:44908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbiBIUhF (ORCPT ); Wed, 9 Feb 2022 15:37:05 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7188C102FE9 for ; Wed, 9 Feb 2022 12:37:07 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1B7CA1EC0576; Wed, 9 Feb 2022 21:37:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1644439022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=3bN14m9k77kQn4q/kQOVP6/l1JRFJq8/BMG6LYEanUg=; b=obf4W4vCrdFF3+UlaBCCLjTAt8SSXnYWf4qNoeWRtUdDFCc5kQDk6K2puovSHC1O7SqB59 uXqiKs9v1tvw0+q6VX0//ZfRrdEOVidMDN60RAQMSz1182PNSllB1WSiTREl/rl4VfnS3h sA5OtZKb1U1Gki/SP4EkY43au3qO4C8= Date: Wed, 9 Feb 2022 21:36:57 +0100 From: Borislav Petkov To: Sean Christopherson Cc: Kai Huang , "Kirill A. Shutemov" , tglx@linutronix.de, mingo@redhat.com, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org, linux-kernel@vger.kernel.org, Brijesh Singh , Tom Lendacky Subject: Re: [PATCHv2 00/29] TDX Guest: TDX core support Message-ID: References: <20220124150215.36893-1-kirill.shutemov@linux.intel.com> <20220209235613.652f5720cd196331d7a220ec@intel.com> <20220210003033.e57c2925b69bab5cfabf7292@intel.com> <20220210004831.03dea501738bee060003d040@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 + SEV guys. You can scroll upthread to read up on the context. On Wed, Feb 09, 2022 at 08:07:52PM +0000, Sean Christopherson wrote: > Don't forget :-) > > arch/x86/kernel/kvm.c - KVM guest stuff I knew I'd miss something, ofc. > No objection to omitting "coco". Though what about using "vmx" and "svm" instead > of "tdx" and "sev". I'm not dead-set on this but ... > We lose the more explicit tie to coco, but it would mirror the > sub-directories in arch/x86/kvm/ ... having them too close in naming to the non-coco stuff, might cause confusion when looking at: arch/x86/kvm/vmx/vmx.c vs arch/x86/virt/vmx/vmx.c Instead of having arch/x86/kvm/vmx/vmx.c and arch/x86/virt/tdx/vmx.c That second version differs just the right amount. :-) > and would avoid a mess in the scenario where tdx > or sev needs to share code with the non-coco side, e.g. I'm guessing TDX will need > to do VMXON. > > arch/x86/virt/vmx/ > tdx.c > vmx.c > > arch/x86/virt/svm/ > sev.c > sev-es.c > sev-snp.c > svm.c That will probably be two files too: sev.c and svm.c But let's see what the other folks think first... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette