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 B52F0C433EF for ; Wed, 4 May 2022 11:04:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F00736B0071; Wed, 4 May 2022 07:04:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EAEDC6B0073; Wed, 4 May 2022 07:04:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4FBD6B0074; Wed, 4 May 2022 07:04:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C31D16B0071 for ; Wed, 4 May 2022 07:04:50 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A195F29FB9 for ; Wed, 4 May 2022 11:04:50 +0000 (UTC) X-FDA: 79427777940.13.F13E4AF Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf18.hostedemail.com (Postfix) with ESMTP id 08A391C0083 for ; Wed, 4 May 2022 11:04:35 +0000 (UTC) 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-Stat-Signature: ohb47j1pd6ec46g9tibpawtd7n6izq6j Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b=Zxx8CbNH; spf=pass (imf18.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de; dmarc=temperror reason="query timed out" header.from=alien8.de (policy=temperror) X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 08A391C0083 X-HE-Tag: 1651662275-745029 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 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