From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 79CB1273D73 for ; Thu, 13 Nov 2025 20:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763065743; cv=none; b=dmleO2PVWNCopWxrgU3KMpFcvrnVe2bC+dlRlSbwnvoVa9QX8qcJ+g9NCpm16SetadAK6SW15V4YMdcVDIlu+pmGXrF8bxzLTxOb+tsP1sTsRCKJZgkZTtcv2awP2/TOvrqekSPtM9CzUz/XPGwoc0bj7/R5ESynkY0cE5AzxsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763065743; c=relaxed/simple; bh=SSS5iLLzHtKCpj66Sm0MuGrCLa7OzvoiLGm4IUcDPQY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sMIRIRVZI+7R8S8opvWZyAmkzA7/SVXxCsXKF/g/Kj68J+sfK/BCx1D6VN8ftkPjsvZ5hOAdJBSOv42W3SdGx5/n86OZ6iLRabaiebwQLkVfxkS8xfpmgkcVLpCWSPP+rmFX7ytI7+y26VGGYWnFnKRJHYwUra9NWW/QzwaEXgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Q/k9OO3h; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Q/k9OO3h" Message-ID: <90d5e140-b2a5-4e7e-addb-c4f75912526e@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1763065739; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=afgZLvoRPRdV/uLRfyJlQxQwB+pZpdtXmSYXDn8K350=; b=Q/k9OO3h2UzYaNYh9XPXo+5JV55ef6V28Qp/4OzYJUxeNlCMcvh/YfWaG6q0Q1eUWT67HO IXSnJ+qalmjNfrhf3lDEdD+uK9jCdBWesmteXEmVvDYkQ20UUdyFtcjOVfL6aGWg4O1Mxi LozeCODbc6HMeh2lP+4beKkZQu3jd4M= Date: Thu, 13 Nov 2025 12:28:48 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v9 1/9] kho: make debugfs interface optional To: Pasha Tatashin Cc: Pratyush Yadav , akpm@linux-foundation.org, brauner@kernel.org, corbet@lwn.net, graf@amazon.com, jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, masahiroy@kernel.org, ojeda@kernel.org, rdunlap@infradead.org, rppt@kernel.org, tj@kernel.org References: <20251101142325.1326536-1-pasha.tatashin@soleen.com> <20251101142325.1326536-2-pasha.tatashin@soleen.com> <029090cf-9a4d-4f79-b857-04c3ada83323@linux.dev> <442fa82e-16ef-4bde-84eb-743450222468@linux.dev> <0735e1ef-2b65-4a54-b4d5-964fb875cd09@linux.dev> <9e144e21-a5e7-4c12-b8b0-07172787ab37@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Yanjun.Zhu" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 11/13/25 12:13 PM, Pasha Tatashin wrote: > On Thu, Nov 13, 2025 at 3:10 PM Pasha Tatashin > wrote: >>> set -e >>> >>> -kexec -l -s --reuse-cmdline /boot/bzImage >>> +kexec -l -s --reuse-cmdline /boot/bzImage --initrd >>> /boot/initramfs-`uname -r`.img >> Thank you for your suggestion, in the next version, I am going to add >> initramfs optionally, I am thinking to update script to something like > Optionally, because in some environments (like in mine), it is built > into bzImage. In my test hosts, the bzImage is vmlinuz-xxx. But with the help of "ln -sf ... ...", this change can work well in my test environments, including x86_64 and arm64 hosts. Br, Yanjun.Zhu > >> this: >> >> #!/bin/sh >> # SPDX-License-Identifier: GPL-2.0 >> set -e >> >> # Use $KERNEL and $INITRAMFS to pass custom Kernel and optional initramfs >> >> KERNEL="${KERNEL:-/boot/bzImage}" >> set -- -l -s --reuse-cmdline "$KERNEL" >> >> INITRAMFS="${INITRAMFS:-/boot/initramfs}" >> if [ -f "$INITRAMFS" ]; then >> set -- "$@" --initrd="$INITRAMFS" >> fi >> >> kexec "$@" >> kexec -e