Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3818661rwb; Mon, 16 Jan 2023 13:31:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7PkP8RIm3+PxwHNy/rT2z1iP2Sjv+UCfl5b3DdDQ5NQqzVLchHSz4exRyM7jYx9BWwqtu X-Received: by 2002:a17:906:abd8:b0:7b1:316c:38f5 with SMTP id kq24-20020a170906abd800b007b1316c38f5mr541258ejb.30.1673904668089; Mon, 16 Jan 2023 13:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673904668; cv=none; d=google.com; s=arc-20160816; b=Misia63xPKWcMZdXIy+9qlhHORoNTl8MxzO4aQwNAZqU4QsOXWMoUW1Gw0GczCE2kY SCs2A1iWWahUCibcK38L1nFtu6BVEpeLK2J8nqeWBGo6DUc2DA60djsji3qB4Fa2f5Ir FNisZ62cTXxtJp77zunNrEHITmfTIUFrZQR2/PuubijclgmSqB3xJkQ+86+c7Ep6Y5sy 5By05TnASrquj/1hCmaRBiPOUBIqJXZVGqG8YB/FteeiGhlKDOzkC6c2Fqb5BtOwP6BS z6WYThLfEzxpDF2+Alxb7z3/u3RwOR6cBRweFyY/bQLrs/EMFyJDFZcJR2Fzr9QnL0a6 9RDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9E5EJ1NAfuKKwPo954zdec877o5qU60sa6iClvMK+XI=; b=deCLEglnftja8A6SmlmsDjoJwSbQFSnlJlo+pedEgBTtBatpUkyXcSiyUH/TGqSMZQ 8KuRdTEkAyckcTrJn3pQ+afGDs8FlqZwGFouacki4Kd4mRPkxQv+MuVHfsVFyumgYibc 61xBZ3na79wPeihK461YGqa+KjLbL2CSdqmGbuv4DSPiRH2EEwKF6yVZwL9MxptGaOj0 7A5H9UwYpwV4tsAqblwRdmo2zfRu33Pt9i2w1w1CAK9n33x0SqLSH+I2rk/R41EQ4b7z 1kdwxa0mNrgrt4noKBtWg18UheTU+tcBkK0xSIrIaJ4T0hx+j0TUSenYgAAgKh4abrUh g7BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LWL1IavC; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs2-20020a1709073e8200b0084d172e0b0esi33693036ejc.35.2023.01.16.13.30.55; Mon, 16 Jan 2023 13:31:08 -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=@intel.com header.s=Intel header.b=LWL1IavC; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233225AbjAPVWr (ORCPT + 50 others); Mon, 16 Jan 2023 16:22:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233904AbjAPVWq (ORCPT ); Mon, 16 Jan 2023 16:22:46 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F3F22031; Mon, 16 Jan 2023 13:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673904165; x=1705440165; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=SuTGGIHQH37aq7t2M/pxLpldt78SXV6xIw0m542+wJ4=; b=LWL1IavCrg/tKPTqhBmrg87OYmZbiCzDiJ14+/rYHLnv6WfFl9aDsuMZ /3w8ebr8gj7GfCQGIFxPS1B7exgCh+GHLZKql4a2Ql1PR0oz5Hpbt7Ta7 YtPlsgVv+x+rCtAYYlp3M7L4xreswN3MhmgHOlr+7Lo1fzZQgJY+8regQ WAAyyOd1vyuDWsjouwe2Din6cLwSPywxUGEjkC9SHrEMPc4AANP6RxJkx /sEvFjYs0agjkUwJg7PGqX9u3KPwL8AVobXglUo9xxbBce7n+mh3r/2sw BBrha1bCRemhwcUWka1fymQkMCLnh9a38CjvLK5L3Lycua9RwFtYCi5vI Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="304244491" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="304244491" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 13:22:44 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="904433033" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="904433033" Received: from paichuan-mobl1.amr.corp.intel.com (HELO [10.209.71.173]) ([10.209.71.173]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 13:22:44 -0800 Message-ID: Date: Mon, 16 Jan 2023 13:22:45 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2] x86/efi: Safely enable unaccepted memory in UEFI Content-Language: en-US To: Gerd Hoffmann , "Kirill A. Shutemov" Cc: Dionna Glaze , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, x86@kernel.org, jiewen.yao@intel.com, devel@edk2.groups.io, Ard Biescheuvel , "Min M. Xu" , James Bottomley , Tom Lendacky , Erdem Aktas , Dave Hansen References: <20230113212926.2904735-1-dionnaglaze@google.com> <20230113222024.rp2erl54vx3grdbd@box.shutemov.name> <20230116105648.63hsxnmj2juwudmu@sirius.home.kraxel.org> From: Dave Hansen In-Reply-To: <20230116105648.63hsxnmj2juwudmu@sirius.home.kraxel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE 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 1/16/23 02:56, Gerd Hoffmann wrote: >> And we add this protocol to address very temporary problem: once >> unaccepted memory support get upstream it is just a dead weight. > Maybe, maybe not. unaccepted memory support has a Kconfig switch after > all. If we figure in 3-5 years that all distros have enabled it anyway > we can drop it again. For the transition period it will surely be > useful. I agree with Kirill here. Having unaccepted memory *AND* this firmware-driven feature really is just implementing the same thing twice. I'd much rather have the Kconfig option forced on for all guests that *might* need unaccepted memory support than carry redundant implementations. Also, _if_ we allow folks to turn the Kconfig off and get access to all their memory, they might get used to that. Removing this firmware interface from the kernel in a few years could be viewed as a regression. Then, we'll be stuck with this forever. In any case, the firmware side of things didn't seem like _that_ much code. So, I'm not protesting *that* strongly. But, I also don't believe for a second that this is going to be removed in 3-5 years.