Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp885268iob; Wed, 4 May 2022 09:55:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx3yRyQ+GPfXBkjVn3rc4f/PyRC90DvxxI+czCzEeyf97pW/nnarBm1V1lIqvhzAuotQcG X-Received: by 2002:a17:902:be18:b0:153:2444:9c1a with SMTP id r24-20020a170902be1800b0015324449c1amr23052963pls.152.1651683321394; Wed, 04 May 2022 09:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651683321; cv=none; d=google.com; s=arc-20160816; b=y7OsBV6/ecGdxCei4Z9y/Xa1lL+LeDzA00j3Qo6p41ySxH7loHvNHGoQk3bfReBgQK zjP0/JV8oYBaeyi2PmFB0Bwk41H9MLv+JqXNWbZ84cwXZ00PwqBb++QjjmPf/8wW3vHD FmeM3otgEHYedOiojlHs6FEMuF4Frh7cKnPV0Y2jSkXfkE1fvQHxWmdoITTzkJSo0QyF Viwlp3NbXY6mq4otg+1yzAjQsA32nKlrelm2btglVfiyLfQ7zfDbX2zmZsD6xNaQM5uP Ny5vTsf4CDrdUFbC/2LUsALB91A7QrzFeFz+QC6VYdjJ0Xefy8am2AmJnYX1gL4aTnoj OfAQ== 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=YG9ijiDBBpz8dWED8Eb7RiBzcKWJo0pro/66Fp+n7FU=; b=sHtqPrxaDWPlnt78yXD52UsCEt9pWFs39gb0wPdFzH+SN0n3/bsfySnsx2PqNlDs42 0wOdfOnD7n4OFv/6Mc2voZ4c7y8qyzQCyY/NUt6OJz1bR2l6sEQ9gRhydZrg1rR28AiI z6q+F9ilWb56z1wy/CfqI/CNPK0wSE38VU7fy8Zg//gbJTQcPqy9MYXgyBqkW3okrx8J jQo03JwAmSQjySt1vJmxukCQEHa6RDUQmStEbUMEJYtGfNf2xiNG8QJ/ltvJ1hkY9iHc uUyKkqY+UunmWdSiod6SBA8Zq5JXSmQUIlWleCouQzTFWEGbl4HVgRspEMROfshpMokO xfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Zxx8CbNH; 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 ot17-20020a17090b3b5100b001cd46bee4c2si6029246pjb.7.2022.05.04.09.55.05; Wed, 04 May 2022 09:55:21 -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=Zxx8CbNH; 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 S1348508AbiEDLIZ (ORCPT + 99 others); Wed, 4 May 2022 07:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348500AbiEDLIU (ORCPT ); Wed, 4 May 2022 07:08:20 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 776E117E24; Wed, 4 May 2022 04:04:43 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (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 AA1C11EC0494; Wed, 4 May 2022 13:04:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1651662277; 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=YG9ijiDBBpz8dWED8Eb7RiBzcKWJo0pro/66Fp+n7FU=; b=Zxx8CbNHf3+6yJFdlPTyt0WK4FSrNOnzi2/spPsW3Xa7WqqktttpwmzqyBEcC15rJAMSSA 3JgY+ilXt+e5IUnxjxLQ27R8+S2KtjtyVECC5Q6YiE/0kbnSt/p5sUiULygTNJ4lekbWoy Qlb0I3MGvqNOrm5O81aDmHkPWx/qfgI= Date: Wed, 4 May 2022 13:04:36 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Andy Lutomirski , 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 , Varad Gautam , Dario Faggioli , Dave Hansen , Brijesh Singh , Mike Rapoport , David Hildenbrand , x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCHv5 07/12] x86/mm: Reserve unaccepted memory bitmap Message-ID: References: <20220425033934.68551-1-kirill.shutemov@linux.intel.com> <20220425033934.68551-8-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220425033934.68551-8-kirill.shutemov@linux.intel.com> 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, 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 Mon, Apr 25, 2022 at 06:39:29AM +0300, Kirill A. Shutemov wrote: > A given page of memory can only be accepted once. The kernel has a need s/has a need to/has to/ > to accept memory both in the early decompression stage and during normal > runtime. > > A bitmap used to communicate the acceptance state of each page between the ^ is > decompression stage and normal runtime. > > boot_params is used to communicate location of the bitmap through out throughout > the boot. The bitmap is allocated and initially populated in EFI stub. > Decompression stage accepts pages required for kernel/initrd and mark marks > these pages accordingly in the bitmap. The main kernel picks up the > bitmap from the same boot_params and uses it to determinate what has to determine > be accepted on allocation. > > In the runtime kernel, reserve the bitmap's memory to ensure nothing > overwrites it. > > The size of bitmap is determinated with e820__end_of_ram_pfn() which Unknown word [determinated] in commit message. Suggestions: ['determinate', 'determined', 'terminated', 'determinant'] -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette