Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp550270rwb; Tue, 29 Nov 2022 02:08:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VRAAyq83mapLVozLxwYvwoAHzyRugA4TS3oHH9T5uS1YAaax3fh2xd3YTRtBCQLViY61F X-Received: by 2002:a17:906:7096:b0:78c:fda3:c025 with SMTP id b22-20020a170906709600b0078cfda3c025mr38373734ejk.461.1669716539099; Tue, 29 Nov 2022 02:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669716539; cv=none; d=google.com; s=arc-20160816; b=HT5dApRdzH/L367DJM3Wlx+MkPC5kO/1kr43cm1CVXlWBnaOgYfmSBUEVlIE/1EXp+ DGtAfwhEJq+j6epCSQMQXQRs6f15pUWHXY9hU9Rd/DZlisq8+nOOvz3cDYOicnvEiKj+ v4M6dWz49bcJDJ1uyiWG+IVVG9sws63BJHnuyPwGaOGPeBEuc3tN+fLiBgzNaEH6ubcc Ahc620d1ypDjYux/FcxbTnJz3xAHPbw4b4Xpkrrg29NXgCEc8SroUL8/ZQYgWuLY7BMW pnK/Tcggv/oQmmxkSnxY3ZeZ94LLsdDCm0xWM8/TCZ/642cVQyJLP9lg0lhtCdH/0av3 /llQ== 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=LtafUuhoGhuxiOxEKxOMOok0bCWTN1htaAAgYkWpfmw=; b=AnfZPJXddQ8OtauJNdoEoMJbBG2T0MaoLwd2z/cohbyvrtL1GE9VKhSR5DCwDH1NpV MhKzgBxJQxEmLjt5ZcVg+4fSTHqU8O2xxYIz1SN9S5lHY2m142pPTU3iAt+4zIFD3WOi MJlzn7IYr4OCPbuW/eoaNva/rBmSNUmRnZS5cQaQ8fHo/FTYwiGymTn8XlofVD5L8mJA 0hfnTXNGO1NQgbFBdN7J0E4Inxh8RwPSRRRmGDOaI6PHR/6hO+2bhxkByCgBoL2AA0T6 FAx21g1c+XROx3wqJ/ggLS+KuTjpHuJMoUvFtsdcHezLbKTwpm/3dyMgkSrRYa8cVGuF g85Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=i5XWBIBr; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020a50ce5a000000b00459195ae973si11303472edj.414.2022.11.29.02.08.38; Tue, 29 Nov 2022 02:08:59 -0800 (PST) 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=@alien8.de header.s=dkim header.b=i5XWBIBr; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbiK2Ikv (ORCPT + 83 others); Tue, 29 Nov 2022 03:40:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiK2Ikt (ORCPT ); Tue, 29 Nov 2022 03:40:49 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28092D4; Tue, 29 Nov 2022 00:40:48 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (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 2F66B1EC04AD; Tue, 29 Nov 2022 09:40:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1669711247; 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=LtafUuhoGhuxiOxEKxOMOok0bCWTN1htaAAgYkWpfmw=; b=i5XWBIBr7fytFgs7Uf48RLs5dWMHp5K+KK9mvmX6p+c/f8RiFg1SkSTuEH3YhFg2LUJpue 0Xgl2zSKsATfHJFPsmiZbVgMxftc/Rlo/tFBkhM3/tkfCFrnhCPpLzT8jsQEis6ic4I2KS Ai7bkeoFc5//t614TyupdVgfKsrswu4= Date: Tue, 29 Nov 2022 09:40:46 +0100 From: Borislav Petkov To: "Michael Kelley (LINUX)" Cc: "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "luto@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "lpieralisi@kernel.org" , "robh@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "hch@infradead.org" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "thomas.lendacky@amd.com" , "brijesh.singh@amd.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , Tianyu Lan , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "ak@linux.intel.com" , "isaku.yamahata@intel.com" , "Williams, Dan J" , "jane.chu@oracle.com" , "seanjc@google.com" , "tony.luck@intel.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arch@vger.kernel.org" , "iommu@lists.linux.dev" Subject: Re: [Patch v3 07/14] x86/hyperv: Change vTOM handling to use standard coco mechanisms Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Tue, Nov 29, 2022 at 01:15:39AM +0000, Michael Kelley (LINUX) wrote: > So that's why I'm suggesting CC_VENDOR_AMD_VTOM. There's no CC_VENDOR_AMD_VTOM. How many times do I need to explain this?! CC_VENDOR is well the CC vendor - not some special case. IOW, the goal here is for generic SNP functionality to be the same for *all* SNP guests. We won't do the AMD's version of vTOM enablement, Hyper-V's version of vTOM enablement and so on. It must be a single vTOM feature which works on *all* hypervisors as vTOM is a generic SNP feature - not Hyper-V feature. > Of course, when you go from N=1 hypervisors (i.e., KVM) to N=2 (KVM > and Hyper-V, you find some places where incorrect assumptions were > made or some generalizations are needed. Dexuan Cui's patch set for > TDX support is fixing those places that he has encountered. But with > those fixes, the TDX support will JustWork(tm) for Linux guests on > Hyper-V. That sounds like the right direction to take. > I haven't gone deeply into the situation with AMD C-bit support on > Hyper-V. Tianyu Lan's set of patches for that support is a bit bigger, > and I'm planning to look closely to understand whether it's also just > fixing incorrect assumptions and such, or whether they really are > some differences with Hyper-V. If there are differences, I want to > understand why. You and me too. So I guess we should look at Tianyu's set first. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette