From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.155 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796264412; b=IlHNUOemU0Aap19X03PBtMC+8HVW+W+PMgzGPItbPvUfMy5nOd5OQfbuYE80g/hNs5kR NwkwdQbc6RsqVauDBnXGFjU3VSadO10oVIokc3HHP4y7bqkjXJUoOoX2Uz/AfLHilKabn VGQBDjbIDPISi2irR667j5ai4pTwQebu+G3NfWu+skPLr1xJb4+DxYjr9e4LuJh97uz1n iPRInoU8M46Wqew/0TftsyJhMmrHIYcEdQSpWkfa+hTM1T83OGloGIv8QeQVoai42i7PN 6usgdJfU4WiciwarZW67NwAy4m5ed06iDsg+AvT0o+aQkjfiIDKzzsNaiJsGMldiPZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796264412; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=8pXI14Gc0eWGJNaRar5F3hdPGpQBvkm58CTIBMwDUQQ=; b=qqXw/06yKmZGLxFhxa3nrAF2osXTq8EshMX44FOLMEYd2zSozgD3hPN1dp/2yeugk6/q B0ETnPAnNZBeE4Uw2IU3FotIMhlBFqEMvaia993ya6AC2QJ1rYZOplXnMLe7iUg/8pM7N FoaUPcGSek/+ugjz2TZXd4S4ODYWuYSBoacgTFJy/88DzRvzyRmGf1htMc7FSIDIDahcs mNMrv1hI00liKe8Ij4AsaZDeYXcanpDRkvxSCx3o+YKhcGGx2xZj/XB/J0sX3sA2vtsyY +VLS+FtZRx4b90RomhRgiD2Z8/3QEtqF6OV1BZhnacT7oJgCHG5TPrk/VUYaP3BJYWw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b="lB8Lz/oJ"; arc=none smtp.remote-ip=91.218.175.155 Received: from mta0.migadu.com (out-155.mta0.migadu.com [91.218.175.155]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D9C6606A699 for ; Thu, 3 Dec 2026 02:20:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9D9C6606A699 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, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=lB8Lz/oJ X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=8pXI14Gc0eWGJNaRar5F3hdPGpQBvkm58CTIBMwDUQQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796264407; v=1; x=1796869207; b=lB8Lz/oJecUdeQUwFf9wuRdjpkQVCQLZ69WSQoTRMRNYUI0NHSV1ALHeTUYyh0IXVoY7hDZp rDye1N9Z6iDgxF6guqZT2SiSc+FPz0cBIcr/WDQY0XcN4I62ndZnG+g87i9maiMJNEF2u3na044 P/YPbAFY1z3Xjx8rnKOXLYHY= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id d28ef897923103f2; Thu, 03 Dec 2026 02:20:04 +0000 X-Mizu-Trace-ID: d28ef897923103f2 X-Migadu-Flow: FLOW_OUT From: George Guo To: rppt@kernel.org Cc: pasha.tatashin@soleen.com, pratyush@kernel.org, chenhuacai@kernel.org, ardb@kernel.org, shuah@kernel.org, ilias.apalodimas@linaro.org, akpm@linux-foundation.org, baoquan.he@linux.dev, ruirui.yang@linux.dev, guodongtai@kylinos.cn, kernel@xen0n.name, graf@amazon.com, liukexin@kylinos.cn, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-efi@vger.kernel.org Subject: Re: [PATCH v6 4/8] kho: Add kho_disable() Date: Wed, 2 Dec 2026 18:19:43 -0800 Message-ID: <20261203021944.11381-1-dongtai.guo@linux.dev> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Mike, Sorry for the late reply. On Thu, Nov 05, 2026 at 02:53:04PM +0200, Mike Rapoport wrote: > The idea behind KHO and liveupdate is that the system uses kexec + KHO for > reboots after the cold boot unless a new cold reboot is a must. > > Doing one yes, one no, breaks that assumption. > > I don't like a global kho_disable() API. It's ambiguous and fragile. I see, thanks for explaining. I'd like to keep the design simple too, so I will drop kho_disable() in v7. The table is only missing if the cold-boot kernel did not install it. For that case, kho_fill_kimage() on LoongArch would return -EOPNOTSUPP, so kexec_file_load() fails at load time instead of KHO being turned off at boot. Thanks, George