From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.73 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796264412; b=EypxbZEOYFN/2y6xhhTXNTid0OAK+KFTQAuCki5n3WSs+hTpAV9btFynxU3gdnPTqjoX 3ecsMLApgw2IypzeDXnBiF/VWDH1nraI29YuFb5vE1VYz62846YFg+oU4qH2C29D82K7W X83Ovl4SrNmVOQTAr2m1Ojvl3j1st3K/DonkRRSyNwhLJwQGGFAo+rFyKYTrrQbhj2Fvs R0Pe2/08A5nch4PqUtgtaeQSTrqP8kW+9oaXW954n2Nhinzp94Q5CwD8zWfdlODm8L9ZB wOpxx0FD1Yt1Uq5VQYuARZm9WUiSfMwF08JagjnTr40G7dCWV/r615fFEwLuh1Blc/w== 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=nzWimUZ+PgqpVpIwNWto4m/2ydvJ9xfip5ATwLmXAvTUHHNAqYlbTId0lbez4OeLxCq6 UTWe/aS8L9R/I30btNc5Ou4rwevDn5X8ab84wxhnje+OBjWVd3FvEI/Ap2xqhspUna2Uu wLuxEcVyJ9WcX9jyo058oOcJH0iiom4SLbnm2fKAqdmdIcaGKSwQGjfqxZQSUY+B7tcnL q4Y97avGCxYbdcbv8ySQ2BBwva53p8aNq0CbWDaWfpp0p9oAcEQ/YW4ZhlSXJTAo+Q5Lh DTX5WXLvZnRl3wuSUVxrLgjClnCL42BsfBz94CXriyzXvRw4lU6FB+QMUurEJQN7isw== 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=Lrxuxkff; arc=none smtp.remote-ip=95.215.58.73 Received: from mta1.migadu.com (unknown [95.215.58.73]) (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 3A8A5606A337 for ; Thu, 3 Dec 2026 02:20:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3A8A5606A337 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=Lrxuxkff X-Envelope-To: linux-kselftest@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=1796264406; v=1; x=1796869206; b=LrxuxkffYkPpKTCd0T5U++0BCY/Y+lOV1KZuEtKF/M33xNsJYFnGlF0KzHBnW7ysSQxxZNPN 7mwHe8tRfdkgLPpDiQRQaJkaFzMBWnXCz2+uW0f+3xZfSTdgQh+orUM9DuQ/sSbGv+K6fPBBoio /IWLqQU41H+SSHD8GvjS8zOg= X-Envelope-To: linux-kselftest@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-kselftest@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