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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D17FCC021AB for ; Wed, 19 Feb 2025 07:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8VZ4jL8diAc1EN7dg417QGXOWLpNluAlP2CUguqhcio=; b=OanW5rKhAI20vnG/II+EwKy5pS x2ASOBVv76wruEurx5daIdQInDOhFSURC7R2D1sl8RSSeFH+G9uroNaxvldkSp6zABOJKRsENs/XG PnVvPvsQJAxzHbvqE5rAceOnwcf3zcWFh0Uw70VvEAFB1So0K0GaKMg3jmVD2QjI2pt4zy7myL0+u znU9CoeVxd0L2p7jR66aV2DVpCfWPUCaxJPk99CcohZEKAEu/oIoYflAd4xSYNqVzhJeOyr8l+HqW g+i2R82LWzRow5C2W8n0oOViLnVLfYJV9rOCvFZW4vQb7F02ku4UD3xHugZxdZ6fBrCxa8hYACv3/ qlXsxBZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tkeVA-0000000BF8Z-2yl4; Wed, 19 Feb 2025 07:28:12 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tkeSm-0000000BEJp-3mmE; Wed, 19 Feb 2025 07:25:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 49C5BA41F32; Wed, 19 Feb 2025 07:23:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25288C4CED1; Wed, 19 Feb 2025 07:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739949943; bh=mn7g0i0MWinLv2YGo+kZxHpbfVUa4TgH6wIWEUwX83A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jo0MN+L40nZsA1Z3XLmqtTAFU4+nInYDLglMHXNfS2AWgOzeetC9vn00TVjVV+H9+ rQaOBtcGPzPXGVyyTiFcCpL/nBV8pOM8Q4gmV4co22EBNknyhAhIQ5IzurwH1xZs5D 9ZupQiXqdfdhBvy4JD5VrKUeuKr1eVOMSSkdgtpySL+EufzrfLjrRGqbFNvu3nHa6B /b5W+Y0ntMGSBuAk5O+mNwS70ivu6sfNCZi3UJ8fCaFpIZ1/CRE0Cn1aAnZq16m/Q5 Um3231KPD8ZPih0fAIySoNxdGrfA0cv8JPQSfDj/hyxBae0+mQMSkcmUV9eOwlWzAf EzSsDgPrKpVQQ== Date: Wed, 19 Feb 2025 09:25:23 +0200 From: Mike Rapoport To: Wei Yang Cc: linux-kernel@vger.kernel.org, Alexander Graf , Andrew Morton , Andy Lutomirski , Anthony Yznaga , Arnd Bergmann , Ashish Kalra , Benjamin Herrenschmidt , Borislav Petkov , Catalin Marinas , Dave Hansen , David Woodhouse , Eric Biederman , Ingo Molnar , James Gowans , Jonathan Corbet , Krzysztof Kozlowski , Mark Rutland , Paolo Bonzini , Pasha Tatashin , "H. Peter Anvin" , Peter Zijlstra , Pratyush Yadav , Rob Herring , Rob Herring , Saravana Kannan , Stanislav Kinsburskii , Steven Rostedt , Thomas Gleixner , Tom Lendacky , Usama Arif , Will Deacon , devicetree@vger.kernel.org, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Subject: Re: [PATCH v4 13/14] memblock: Add KHO support for reserve_mem Message-ID: References: <20250206132754.2596694-1-rppt@kernel.org> <20250206132754.2596694-14-rppt@kernel.org> <20250217040448.56xejbvsr2a73h4c@master> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250217040448.56xejbvsr2a73h4c@master> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250218_232545_067094_EA4FC239 X-CRM114-Status: GOOD ( 24.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Feb 17, 2025 at 04:04:48AM +0000, Wei Yang wrote: > On Thu, Feb 06, 2025 at 03:27:53PM +0200, Mike Rapoport wrote: > >From: Alexander Graf > > > >Linux has recently gained support for "reserve_mem": A mechanism to > >allocate a region of memory early enough in boot that we can cross our > >fingers and hope it stays at the same location during most boots, so we > >can store for example ftrace buffers into it. > > > >Thanks to KASLR, we can never be really sure that "reserve_mem" > >allocations are static across kexec. Let's teach it KHO awareness so > >that it serializes its reservations on kexec exit and deserializes them > >again on boot, preserving the exact same mapping across kexec. > > > >This is an example user for KHO in the KHO patch set to ensure we have > >at least one (not very controversial) user in the tree before extending > >KHO's use to more subsystems. > > > >Signed-off-by: Alexander Graf > >Co-developed-by: Mike Rapoport (Microsoft) > >Signed-off-by: Mike Rapoport (Microsoft) > >--- > > mm/memblock.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 131 insertions(+) > > > >diff --git a/mm/memblock.c b/mm/memblock.c > >index 84df96efca62..fdb08b60efc1 100644 > >--- a/mm/memblock.c > >+++ b/mm/memblock.c > >@@ -16,6 +16,9 @@ > > #include > > #include > > #include > >+#include > > Looks this one breaks the memblock test in tools/testing/memblock. > > memblock.c:19:10: fatal error: linux/kexec_handover.h: No such file or directory > 19 | #include > | ^~~~~~~~~~~~~~~~~~~~~~~~ Thanks, will fix. > >+#include > >+#include > > > > -- > Wei Yang > Help you, Help me -- Sincerely yours, Mike.