From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2DBD43C043 for ; Mon, 11 May 2026 16:37:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778517476; cv=none; b=pFBqsklJfa+Hz49AdzbsnIA/7x+JW7PeuyuBQD/25E1GODHWydDeQBGlYmYBiurGaQeqdmgnwg0Noy7OYudoo5cySykY0TXj2n84oGDK3E2LeMy2OGhat/gBjqBES7h/4iM19e7zdApyGU0iTe9tjrxN5a7uet3I4XueNpDMATU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778517476; c=relaxed/simple; bh=1RfJS1aJjFsfMSotJ2thwUAXHq+RuaNrgrSptVxqnkU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=nS0VdFCfEkX0a5T6jLfCbWErIb3gwULTeDb1QE3JaBR/Zk0oicN4gaueJIhdjfaGDe6Q7p0DMlLCzZGzk5Ql094KiCF4kT5kSxnpqzF6GdzMRdYXIB26ctRAVpKWORFlltjdM0iLwtA1dq5l/hixjRjkGoBcdiX/+Rr2M6VAIIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UTUovfWQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UTUovfWQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABF4DC2BCB0; Mon, 11 May 2026 16:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778517475; bh=1RfJS1aJjFsfMSotJ2thwUAXHq+RuaNrgrSptVxqnkU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UTUovfWQQwywyQ605mSF8CC2LQ1+uhAnHnrWselk1awvZQLicAlyeB8gmnUQTmKF8 EnNNyf8mONLtMnI7MWFFDaAhFQS5p5XOOYdbkGAkf1Adguq7B9f42ULlJsdF43QKSs iCtBt7dEbFv7u25jJQGhWjWLBh2MSwNlqArbBLy33Yn63OZrvHXGgp2ednWyBeGrMf OnatP3UAzYKEu/RIpEhWhY2eOVBvlxj430oMXVvJEx/3/4BP53D8fshzljeVuhljhe /v2b3z4DO8Z70buo2qtetrAO1GGhS+P3EK2X8C5JcwdMoPp3/L4bykY6aVwvC4FItc vlu9ntaiB4huA== From: Pratyush Yadav To: Mike Rapoport Cc: Pratyush Yadav , Pasha Tatashin , Alexander Graf , Muchun Song , Oscar Salvador , David Hildenbrand , Andrew Morton , Jason Miu , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/12] kho: allow early-boot usage of the KHO radix tree In-Reply-To: (Mike Rapoport's message of "Mon, 11 May 2026 14:56:40 +0300") References: <20260429133928.850721-1-pratyush@kernel.org> <20260429133928.850721-7-pratyush@kernel.org> Date: Mon, 11 May 2026 18:37:52 +0200 Message-ID: <2vxzmry5c36n.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, May 11 2026, Mike Rapoport wrote: > On Wed, Apr 29, 2026 at 03:39:08PM +0200, Pratyush Yadav wrote: >> From: "Pratyush Yadav (Google)" >> >> The KHO radix tree allocates memory for table pages from the buddy >> allocator using get_zeroed_page(). This is not available in early boot >> when memblock is still active. >> >> Using the radix tree in early boot is useful for KHO to track metadata >> about its memory. One such example is for tracking free blocks for >> memory allocation when scratch runs out of space. This feature will be >> added in the following commits. >> >> Add kho_radix_{alloc,free}_node() which allocate and free the table >> pages. They use slab_is_available() to decide which allocator to use. >> While slab_is_available() indicates availability of the slab allocator, >> it gets initialized right before buddy so it serves the same practical > > ^ after? ACK, will fix. > >> purpose. >> >> Signed-off-by: Pratyush Yadav (Google) >> --- >> kernel/liveupdate/kexec_handover.c | 24 ++++++++++++++++++++++-- >> 1 file changed, 22 insertions(+), 2 deletions(-) -- Regards, Pratyush Yadav