Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7038762rwd; Tue, 6 Jun 2023 05:42:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tpKMUKL6VAQeF7oSLLiXKfOLf3vAyprIisJYnoXjKlGly7SYqAcXax8qL4ABkLLWAx3BW X-Received: by 2002:a9d:6404:0:b0:6af:80d2:45ba with SMTP id h4-20020a9d6404000000b006af80d245bamr1772162otl.38.1686055379120; Tue, 06 Jun 2023 05:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686055379; cv=none; d=google.com; s=arc-20160816; b=SQbHrsNhjmLIjPtyL/uB9WuzbmG3LF2BlIeqlIxSBKZ9JDclLdwpqEpZ+DjK89f4Sn qItqQKDNaHnu7JBXoqnXNcvEYMgxV1lztS2nAYfqwCJ+c8z27gZnH3tN+cv7oh01qSSm KP6G2637CoPrDrkzl8ks0tmSM5bxl9zPWfqfm3OHNDnB4iYykTX8h/66lATyTwQCpUSR pa7JxmYasj6IQ2ykMh4XR+2EJ72xGOYgslUD6jockE+ty3hF6uxUqIkOSs70ux7n3ash Ue8LFp8p5kgbnkMDC6BbEPRyZHznYHMRayTviPh7bX78Xg5jHeyNfqX7ZW8hecB/P7Ia 57og== 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=aSEF9pu9eNB9dGCe3DY/ck8Uewf1oGAg3uGTYX+RT/A=; b=LSBbR+op2Ynz6y0iNwGQ5rnkOfYZK0nfx+RdV8SA+EXe9nu6FAzxKy5DAjycN46e/b 6gsIOxwUKvszMNQRZoMAlhtMjSWpWvtY2/VaG0IZy1MGGLmxY9g9mZpI4HMh9te1C8Oq kNza+DJkbYM08qhnE8Dh0nnig9wh6fqwFAc4g7wcOx4xMzk5shlQEkjoDuF9c71eLbPf XNaIyV6f0iGHCvRkrRQSR1hn5aBlLNy8lImT8hkljt1hfyO0dg8gobEzhAoYfoegHhnO zHVwePdzGYDGTbPmX3pFuWrCrIdSdBT6XONFvmmVeW6CAP23SQtokISIfaUsdGJG3eju KAhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=NkSSaqfT; 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=fail (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 s28-20020a63925c000000b005428de93a2asi7422304pgn.142.2023.06.06.05.42.45; Tue, 06 Jun 2023 05:42:59 -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=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=NkSSaqfT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236817AbjFFMaI (ORCPT + 99 others); Tue, 6 Jun 2023 08:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237218AbjFFM3w (ORCPT ); Tue, 6 Jun 2023 08:29:52 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2370610C7; Tue, 6 Jun 2023 05:29:51 -0700 (PDT) Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (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 8E2331EC04CC; Tue, 6 Jun 2023 14:29:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1686054589; 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=aSEF9pu9eNB9dGCe3DY/ck8Uewf1oGAg3uGTYX+RT/A=; b=NkSSaqfTgWrrj8pthl93Mugw+kUo4rN1wCyKaCq8onem9KR+Bd0W6NdxITU8MJoBeejEWz IZndqnOBdGLfUwyfSyo8dK4xmQM1T/RvzHZHrxrA61LGEPphGeWVJrLdDucj3LXNL0vvI9 WaVN5lanR4+Rdl5GmHD6qvznR9XcjtA= Date: Tue, 6 Jun 2023 14:29:45 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Andy Lutomirski , Dave Hansen , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv13 5/9] efi: Add unaccepted memory support Message-ID: <20230606122945.GBZH8mue040bYCZu2Y@fat_crate.local> References: <20230601182543.19036-1-kirill.shutemov@linux.intel.com> <20230601182543.19036-6-kirill.shutemov@linux.intel.com> <20230605154333.GLZH4CpV3eXCCWCGxi@fat_crate.local> <20230605173303.k5yt535snxyk4ez3@box.shutemov.name> <20230605191225.GCZH4zmbtkWWRG4lzf@fat_crate.local> <20230606121924.wcjezcppuiofvnk6@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230606121924.wcjezcppuiofvnk6@box.shutemov.name> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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, Jun 06, 2023 at 03:19:24PM +0300, Kirill A. Shutemov wrote: > Does it look okay to you? > > /* > * accept_memory() -- Consult bitmap and accept the memory if needed. > * > * Only memory that explicitly marked as unaccepted in the bitmap requires ... that is ... > * an action. And let's add an additional sentence stating it all clearly: "All the remaining memory is implicitly accepted and doesn't need acceptance." > * > * No need to accept: > * - anything if the system has no unaccepted table; > * - memory that is below phys_base; > * - memory that is above the memory that addressable by the bitmap; And this is an additional clarification. Good, thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette