Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5165694imw; Tue, 19 Jul 2022 23:28:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uV5sV9bx1+3jQsLED9miK+8XAL2tHsXyIfuZ0vvsLVVk23wtmXJFsNHl8eGPx8oFCcb6eO X-Received: by 2002:a17:906:7e43:b0:72b:52de:b039 with SMTP id z3-20020a1709067e4300b0072b52deb039mr34330741ejr.198.1658298518656; Tue, 19 Jul 2022 23:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658298518; cv=none; d=google.com; s=arc-20160816; b=P+Buzlgfq4sjHe48usCmsUdKCWIK5yT8ZQnMSZvrxAMywvvU+vShJCCFoTCUgHYqz9 8RHdhGkXG3imgrXhRdtNOYN/EfKHeOxOjYKKHuxS793jPI2zBEDzWy4v0sySIcToK6bz 6KjMRmbG5eb0e9OxJTFJ/YKoQqkYLEOPQAb1vQ6dZpnHxZVfT/yYbUSPwo2UJVPmIrn2 ciQeUl/JshZrl4EbVF2SbMa0KEQiqWXqIStgygI7t850ZGaSO/p5adnvM1U+8AqJD07v /lYk3dZJpR6Q34NnmcN+zhzxICRMbPTmSOS5fKKrW21SB026HowKY/D2oiayhXcV00N1 365A== 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=KnJwTmrzbZQLag/zXC8r1DfsvGYW7gz9MNnMX3SapF8=; b=mCAdzhLHQzTG4lud0Mqe2BFjfc5Nlzzg6d+M7InSG7M5evvXvjlkX6O+nqGgyo9gbl rVTCOh28LZzgV1PMgKjtI7HKkVam/J2J1lnfYtEg3n4g0jAWyLPwR1cUtwDPZ9DwbUhn KYgiVT0alQncRo7Epc6TFzjGR76jKax8A9tAGTiM8/kRThN23DZid19cYdZcjYGdf15t ZSyMtD9ZTRfpvO8hgAhzOn0jRZp7cBDeA6Fp7MAxKRSlw8we7/PyWta20mym2zlhWc/I ZaSiyOgE3LkcydWRub/y82aZAdA8/uqMT9AX50B53MsXv3iluzfLx92oy6J7cF8Grs4t 4+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZfYqD87c; 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 fu35-20020a170907b02300b0072b8ec116a0si2691648ejc.796.2022.07.19.23.28.11; Tue, 19 Jul 2022 23:28:38 -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=@alien8.de header.s=dkim header.b=ZfYqD87c; 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 S232527AbiGTFon (ORCPT + 99 others); Wed, 20 Jul 2022 01:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbiGTFom (ORCPT ); Wed, 20 Jul 2022 01:44:42 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F8D068DF2; Tue, 19 Jul 2022 22:44:41 -0700 (PDT) Received: from zn.tnic (p200300ea97297623329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:7623:329c:23ff:fea6:a903]) (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 58EB21EC0441; Wed, 20 Jul 2022 07:44:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658295875; 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=KnJwTmrzbZQLag/zXC8r1DfsvGYW7gz9MNnMX3SapF8=; b=ZfYqD87cUp3d3RCVgQSTgRjJ+N08DElz++nUMe5bD+K3/fLnKnr7qdkX1tkfAs3ADQ8kl2 Nvg6g871wMLcTqfLbq9aGOJdqYcWvyfu5fdRsYFnnQPy1aeAfIyXEVcDWZ8aRHlRtrOjcQ IVzPH0ngUJQG0jEPQX7MEf/VuGaNFLE= Date: Wed, 20 Jul 2022 07:44:30 +0200 From: Borislav Petkov To: Marc Orr Cc: Dave Hansen , Ard Biesheuvel , Dionna Amalie Glaze , "Kirill A. Shutemov" , Peter Gonda , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , Marcelo Cerri , tim.gardner@canonical.com, Khalid ElMously , philip.cox@canonical.com, the arch/x86 maintainers , Linux Memory Management List , linux-coco@lists.linux.dev, linux-efi , LKML , "Yao, Jiewen" Subject: Re: [PATCHv7 00/14] mm, x86/cc: Implement support for unaccepted memory Message-ID: References: <22d54786-bc12-ecc5-2b37-cbaa56090aa8@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.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, Jul 19, 2022 at 05:26:21PM -0700, Marc Orr wrote: > These feature tags are a mess to keep track of. Well, looking at those tags, it doesn't look like you'll stop using them anytime soon. And once all the required SNP/TDX features are part of the guest image, - including unaccepted memory - if anything, you'll have less tags. :-) > - Do we anticipate (many) more features for confidential compute in > the future that require code in both the guest FW and guest kernel? If > yes, then designing a FW-kernel feature negotiation could be useful > beyond this situation. Good question. > - Dave's suggestion to "2. Boot some intermediate thing like a > bootloader that does acceptance ..." is pretty clever! So if upstream > thinks this FW-kernel negotiation is not a good direction, maybe we > (Google) can pursue this idea to avoid introducing yet another tag on > our images. Are those tags really that nasty so that you guys are looking at upstream changes just to avoid them? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette