Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4741492imw; Tue, 19 Jul 2022 12:19:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uymrLDrEIzvv/YJe03duNN6Q6Y/DRoof4FUb0fqzfp05clh5mG1HVMebovEGMtaQvOarSI X-Received: by 2002:a17:902:8547:b0:16b:df3b:203 with SMTP id d7-20020a170902854700b0016bdf3b0203mr33850082plo.137.1658258367233; Tue, 19 Jul 2022 12:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658258367; cv=none; d=google.com; s=arc-20160816; b=KIM15CBNizqnzq3jQHzug7M0mPBBZ2bs5UO3ZYhhBvHQfNTRFkMK3D9AxQO3zbMTFp 7ItofeQT53kNhgaSDZfhn7fBbeH2KaPZ6x3BW+jhXk4vUQ7hGcVqwLBqxu+Tq+24aNzq 4g7vKY9eemt+l7OlA789YycqCLdpg2eCSxkV47t0qha4Llkq1LxG9MR6O/HpPdox3uwN BSsMPcUDCKBTKFMS2tI7t2sJWd93JufJXkxyIaTd6Rzs6clTcwX1xROqtuRjpE6JPtSS 0EdNN1T/k7zemHjRm9WeNMYNf5VNghaq/SALdafMXV/w4VZGGIoa6AbXnX5AYOMw0dwA xYOQ== 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=YtDNrDoiP/YwCtnXFCAYb4Hl8NXDzFtCiOlz4jSq9Ro=; b=oJNicdUUp5ggDN0qWHx0X63cQaJ8Nu6ov2A4kILI1+M9d28NHsJRo8tppkjJVx2YzT ahMvyeu7TfGAANWJzWb9pTXCfGVA/juYiSuJtIqZlGoVh7mXRbpnq+KPxZOSPWeaKU9d fR3WwvdwYC3UPcoAXmj2PDdFysHdQQMoIn04WumGMmNzYz574nuo541ZnT5EB6SYBanO JZu4XEl0rJEX8hYyesJz0mNijI+tu3WwvsHz8iU24UVhOrkzRWehjRBCCka9cgwdnVvR WbE/quFqvFDfLNpaihjD+BuRfWx1rth95AQF+wr2KYR623lgt94gzd8ZgxsMcXzURm+B R1gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=n73dc2tk; 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 u21-20020a63ef15000000b004160a244062si12526785pgh.311.2022.07.19.12.19.12; Tue, 19 Jul 2022 12:19:27 -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=n73dc2tk; 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 S238975AbiGSTOC (ORCPT + 99 others); Tue, 19 Jul 2022 15:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234410AbiGSTOB (ORCPT ); Tue, 19 Jul 2022 15:14:01 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C31F474F1; Tue, 19 Jul 2022 12:13:59 -0700 (PDT) Received: from zn.tnic (p200300ea97297609329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:7609: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 74F971EC0138; Tue, 19 Jul 2022 21:13:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658258034; 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=YtDNrDoiP/YwCtnXFCAYb4Hl8NXDzFtCiOlz4jSq9Ro=; b=n73dc2tkN7SSfchiNt09DoO+Giut6lvnYRRC54C8OBl/IBIvIFfEmvXNcPAB+ZeDqQkg0x mBmdpV8Dpf28ML3SjyDkGrIK+sG14tR2GB2DHtIaifH68mRCkhPCrDTIpGPq0Ad/fnAEuO VPyM9cE+UpZjUFVK/qLcV7rzun1mF+o= Date: Tue, 19 Jul 2022 21:13:50 +0200 From: Borislav Petkov To: Dionna Amalie Glaze Cc: "Kirill A. Shutemov" , Ard Biesheuvel , 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 , Dave Hansen , 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: <20220627122230.7eetepoufd5w3lxd@black.fi.intel.com> <20220627223808.ihgy3epdx6ofll43@black.fi.intel.com> <20220718172159.4vwjzrfthelovcty@black.fi.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 11:29:32AM -0700, Dionna Amalie Glaze wrote: > How about instead of the limited resource of UTS_VERSION, we add a > SETUP_BOOT_FEATURES enum for setup_data in the boot header? That would > be easier to parse out and more extensible in the future. > https://www.kernel.org/doc/html/latest/x86/boot.html?highlight=boot > > This can contain a bitmap of a number of features that we currently > need manual tagging for, such as SEV guest support, SEV-SNP guest > support, TDX guest support, and (CONFIG_UNACCEPTED_MEMORY, TDX) or > (CONFIG_UNACCEPTED_MEMORY, SEV-SNP). > The VMM, UEFI, or boot loader can read these from the images/kernels > and have the appropriate behavior. I think for stuff like that you want loadflags or xloadflags in the setup header. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette