From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F1BDC43334 for ; Tue, 19 Jul 2022 19:14:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 384756B0078; Tue, 19 Jul 2022 15:14:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3062B6B007D; Tue, 19 Jul 2022 15:14:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 180616B007B; Tue, 19 Jul 2022 15:14:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id F39AD6B0074 for ; Tue, 19 Jul 2022 15:14:10 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C7284C0280 for ; Tue, 19 Jul 2022 19:14:10 +0000 (UTC) X-FDA: 79704799860.27.1A5C2AE Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf24.hostedemail.com (Postfix) with ESMTP id 572EA18008E for ; Tue, 19 Jul 2022 19:14:04 +0000 (UTC) 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: ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=alien8.de header.s=dkim header.b=n73dc2tk; dmarc=temperror reason="SPF/DKIM temp error" header.from=alien8.de (policy=temperror); spf=temperror (imf24.hostedemail.com: error in processing during lookup of bp@alien8.de: DNS error) smtp.mailfrom=bp@alien8.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658258050; h=from:from:sender: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:dkim-signature; bh=YtDNrDoiP/YwCtnXFCAYb4Hl8NXDzFtCiOlz4jSq9Ro=; b=r+fdy9RqBn74GlI3ndSsWJPMrGytt/5Q2nkkUikwHMDr0Pp6x4E67D/dKKK9NCmOd33ZB1 TJU3pqELiUmvENajt5JT+XqymxLnWtBDac51WZHnEie3xzXukZaUeWxilV72YttR2WWzfE n+Z9HzullLvnUT1mSNBI4hsErW86y6A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658258050; a=rsa-sha256; cv=none; b=jU7darhUT/SM5nwUHIPa6A46jcEiPLyrQd100t6SlCAyzgrTOFz1WxMMYf8f4ZyNKmYoOs yEeNPpC24f5R4dCnoQIcTQouyhHccKGV/RqeUClic2zrqVpspTG0VZFwmlhfe1c1MMRC6t Tqu0oHGufJ8P2riqB1TRY0520wxySKs= X-Rspamd-Queue-Id: 572EA18008E Authentication-Results: imf24.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=alien8.de header.s=dkim header.b=n73dc2tk; dmarc=temperror reason="SPF/DKIM temp error" header.from=alien8.de (policy=temperror); spf=temperror (imf24.hostedemail.com: error in processing during lookup of bp@alien8.de: DNS error) smtp.mailfrom=bp@alien8.de X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: k1oy4trow681ef8g5838ypmb3jpiocdc X-HE-Tag: 1658258044-297756 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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