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 3CF333242B8 for ; Mon, 11 May 2026 12:13:07 +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=1778501588; cv=none; b=gLemKRb8TxAitH5aXe3dDJV7YC4bzzZWn4EFLH6pkgVvxStYBZT3TtRIe8UlUHUyf3Y8MH4ip6fduZNwCUu0Y889jbGUhUFa7va5GuV41UrL0unT4D6CG9wfIJwFoG9Mkb14Gp/YDx1Xfx98qbb9iYuWCtpT6uc2+O19vJYYD3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778501588; c=relaxed/simple; bh=ACia1fo3j4FYA6Cxli5LduVzIboVeoDpclxkAUCwXgA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AwGUbmBGvmngp4/oYWpPRUbt1WvOcCPZ0F2kmzExW3R+od1+wQMOl36AEt4UfB4x6HNcVNs0YV17COt5udw81xCllrEsaf1oZWx3b6h/oOvjz8iiV6S43z5Kuj66ROemzobQij/LQWtacj4Vx0Q+mGC9O2/BpJk0Tj0OrjIixK0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qSlkMx09; 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="qSlkMx09" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6569DC2BCB0; Mon, 11 May 2026 12:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778501587; bh=ACia1fo3j4FYA6Cxli5LduVzIboVeoDpclxkAUCwXgA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qSlkMx09q7PpYOs8E1U0TOgx4LzltEiqjV0To4T92oDu6bM3pMnDy7qV1y11OPQNj WBrZXGKH4R1OfzCvpv8STq9HmW8TdDm+ycGJZeybCFSMRGaVWjw2zuPMgSiz+5Uczs lF1DfYyMJ3vldk4MKHM4lFVoVabV7gKcu48dw7TXdUyQVMiNzQINMeT4L6GgRM0bhw BCElMcg9/z/7Zr2CkhA+3Y46ZINUNc9FmrP/wVR4vG2Bp461LGMryTgKVMeb1k1pGO 6OGrTzJrZ5xym27A1ZB/cNmHEeowzT/vWIU8ticpTbGmRmzJQY2G3YymBtZPqxUR2n MK9MJGbLjs+AQ== Date: Mon, 11 May 2026 15:13:00 +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 11/12] kho: return virtual address of mem_map Message-ID: References: <20260429133928.850721-1-pratyush@kernel.org> <20260429133928.850721-12-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-12-pratyush@kernel.org> On Wed, Apr 29, 2026 at 03:39:13PM +0200, Pratyush Yadav wrote: > From: "Pratyush Yadav (Google)" > > There are currently 3 callers of kho_get_mem_map_phys(). Two of them, > kho_mem_retrieve() and kho_extend_scratch() need the virtual address. > The third, kho_populate() doesn't care. Make things simpler by > directly returning the virtual address. Rename kho_get_mem_map_phys() to > kho_get_mem_map() to accurately reflect what it returns. This should be moved earlier, before replacing open-coded get_mem_map() with a call to kho_get_mem_map_phys(). > Signed-off-by: Pratyush Yadav (Google) > --- > kernel/liveupdate/kexec_handover.c | 28 +++++++++++++++------------- > 1 file changed, 15 insertions(+), 13 deletions(-) -- Sincerely yours, Mike.