Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5796867rwb; Tue, 9 Aug 2022 04:24:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR52FqfAGJULrNhRLc6yvm+D0Q/AIBFOY7rBe3M86woL1V5XlsjUdataMuGqUnvtPnAnmZRT X-Received: by 2002:a05:6a00:23d3:b0:52e:27c8:b8f3 with SMTP id g19-20020a056a0023d300b0052e27c8b8f3mr22350954pfc.43.1660044286266; Tue, 09 Aug 2022 04:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660044286; cv=none; d=google.com; s=arc-20160816; b=eUYiRXSJHIbDs7NyT9AuvJ/G4kyx5P/mLfVFAJvJnj0ajJr7Up2q0RaxYoBI226EVS PkQ0RS0UyN+lPs7CmOXU1yxz3gcjx7noCTww/RZEj9HW0/QVQXdreQzCcPRVHazXqQQH bo65JnhzdOK/3N8GotTMp3Q/NzjakN1zkT18d7pl079pgbTbVfyrb2Sk7I0burKrI2b0 G2Sc+kjOBctumMwwZ83W5LO/TtjdCfvJGjsJTT6w0prZP2/k8o4gW7Zm7Q0RDUXF2emC X/wVA/ufShEIgKGiuv+k32Sk+NFL3x5fR9M/HbCbg9Fs5PhKz+rww7YPoZ4IMaL9rnF3 Ty/Q== 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=w2E3J2lllioAttArXfjkC3sMNnXMJO4kEK/XZcj6Fdk=; b=cngADK+R9BtKgEOHba6Im9F1zILQEYTkmi6ZKnAbddL/Kug8c4x+c9XIxzapgCVdDh r4gfcprMXes2RA4h1F8YfUq7wNbXSirdJVynkaGfmAuOSha7JdK71gNjWa1VWlMci1WJ xUOLkwnWFxZoRJyk8Hyunpyh4Uiwe29ZZe+fMWhympKl5fu09ayN0bLrfBwZOhEuDI0u nJANrWYEvO11J8xAwJQ74j6anvPBKSHFvvGxmOYu9Ftxg8K4yuB9XI3qVV+ZAZx7CZfF fuRzQCduIdZS/rUqPQzGHNBlrX25qlNvRpltilrWIyu/zA0XduZEmaEOpCn+7tj4srHC bKKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OVJoBS1b; 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 r6-20020a655086000000b0041c5b90f8cbsi2150544pgp.850.2022.08.09.04.24.31; Tue, 09 Aug 2022 04:24:46 -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=@intel.com header.s=Intel header.b=OVJoBS1b; 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 S238977AbiHILLt (ORCPT + 99 others); Tue, 9 Aug 2022 07:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239296AbiHILLq (ORCPT ); Tue, 9 Aug 2022 07:11:46 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F04622BE5; Tue, 9 Aug 2022 04:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660043505; x=1691579505; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=g4riI1Cedm0YyxvcNI2oLRUNfvQrlF8b9RCytIm1Osc=; b=OVJoBS1btqv+Ihl4BHzsIYkeepFtXkKH69p2rjqcOfsbiBnSpVJXflf7 K1EcTJQUHhqS/jgX7rUc9a8A33n5IA8lXIIFvuGYQxz8PJhBIIh3UZaEP Pj28SLuWKTH6W49Q3OMMU8hDANsMDnBMV4MGpznxMRiHcIH63oZQZvCQk GsRarFL1RcvhUqoP01stRTk+g3EBHFmlm4AQuhmaqVWxDoECpbKS/FxuL vZDjf5lRF2RJ/l1iSE/W/KRtjlEA+leL9C5ELp+NnT+dvp19XKlRKcI9W PFGvwG7J5l0v6/eZNW4h4p2q0ucUeSZ/mTLrorjvJx9WTb9X1n5PmacsV Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10433"; a="273859109" X-IronPort-AV: E=Sophos;i="5.93,224,1654585200"; d="scan'208";a="273859109" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2022 04:11:44 -0700 X-IronPort-AV: E=Sophos;i="5.93,224,1654585200"; d="scan'208";a="694105197" Received: from labukara-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.251.214.212]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2022 04:11:37 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id B515D103886; Tue, 9 Aug 2022 14:14:36 +0300 (+03) Date: Tue, 9 Aug 2022 14:14:36 +0300 From: "Kirill A. Shutemov" To: Ard Biesheuvel Cc: Dave Hansen , Marc Orr , Borislav Petkov , Dionna Amalie Glaze , 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: <20220809111436.kudwg2nprnnsfvuh@box.shutemov.name> References: <22d54786-bc12-ecc5-2b37-cbaa56090aa8@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Sat, Jul 23, 2022 at 01:14:07PM +0200, Ard Biesheuvel wrote: > On Thu, 21 Jul 2022 at 19:13, Dave Hansen wrote: > > > > On 7/19/22 17:26, Marc Orr wrote: > > > - 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. > > > > I'm obviously speaking only for myself here and not for "upstream" as a > > whole, but I clearly don't like the FW/kernel negotiation thing. It's a > > permanent pain in our necks to solve a very temporary problem. > > EFI is basically our existing embodiment of this fw/kernel negotiation > thing, and iff we need it, I have no objection to using it for this > purpose, i.e., to allow the firmware to infer whether or not it should > accept all available memory on behalf of the OS before exiting boot > services. But if we don't need this, even better. FW/kernel negotiation does not work if there's a boot loader in the middle that does ExitBootServices(). By the time kernel can announce if it supports unaccepted memory there's nobody to announce to. -- Kiryl Shutsemau / Kirill A. Shutemov