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 03ECD375F80 for ; Mon, 11 May 2026 11:56:47 +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=1778500608; cv=none; b=Y/uujabMwMAwGQCk6YeNPHg2w6uOWYXHW5UNe9bN5Vls1vbZnCx2P0TaLGu0yO2iWQbjdtgQGcmeGGMedl4HVUTv+FYnsGWO5Q3878dOCw39LXTZG7oXwhmwLGuYhtMtd6v2TmuOnODodBADdeW7EkRuTKRVWpuyIldmVr7gzPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778500608; c=relaxed/simple; bh=RPofv0sJIx1BCo2Ks5FWiQnTOmzxK00LHgl2H+nVruE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZQ3ID4WB6Mk5FD8+uGU9cdlrxCm6IAJN9BRCuaWs0pL6r8dJEY4KG/RNqq1EvMTdSArRA6QU1m13MecQHFM3bFPz3T7KPjJlpqWmvgBt1VsrYmSpDDWI8qvvUQwK7yQjTyiNweRhL5mJXt8+j3jo9MIPlqTWcYiPPOfHqaBJXHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LtRQQZSf; 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="LtRQQZSf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDDF2C2BCB0; Mon, 11 May 2026 11:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778500607; bh=RPofv0sJIx1BCo2Ks5FWiQnTOmzxK00LHgl2H+nVruE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LtRQQZSflLpDPcYSSW2Eym9IkYemtgSZn79u/D4IwuPzXF/iUKo1YguDzKs8+jnZN wILT2t0cv01gTvm9pHZ8SeMvXchNRjY9mP7pZfYrbBxkAqm+PbjBI8j6q5feGc07BB efAR4iajWMdaArynmYG1xj5MjZkS4VAJ4ZSh3Fgyn9ktxfQdmnBeAkl+Ru7LwZ1nva ooJYZqsTTcqnqIndjWfgepNBwndgLARlwUmGo1ucOMtHKiae5H1rXIqHyp0pz7gMsT dhONrAoW/LGU7Jul3d2XzvVQRz89joXDRfwvOmyWslxOZYBWHo1nFZLC9xlbogETvQ uYek6voYXOUvQ== Date: Mon, 11 May 2026 14:56:40 +0300 From: Mike Rapoport To: Pratyush Yadav Cc: 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 Message-ID: References: <20260429133928.850721-1-pratyush@kernel.org> <20260429133928.850721-7-pratyush@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260429133928.850721-7-pratyush@kernel.org> 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? > purpose. > > Signed-off-by: Pratyush Yadav (Google) > --- > kernel/liveupdate/kexec_handover.c | 24 ++++++++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) -- Sincerely yours, Mike.