From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.154 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796264412; b=FLUMglLmwDn1hak/kozOiMcqvHAw7UQzNGFB8xfn/jPNaZG1eJwWiCY38L0asXd6enSQ TR7yYLZsg0Ysqrw+Aabw/5gNBqBoHZQmsazuYzsoxDTrAlJYfi1qF5VJotR0a2LJsblrq VXZ7AMTfc3EjW6w1iIZ52kNa/v6RI09D8nevnjISr1CmTZvdxBxb5sMuiYbaJ2lWAw07q S6rItpRFMoGqDxCY4Vy5MvdG9tg1+m3Ec1ukZpurJ5ceqqtu4Ql8qyfq8758rs2K1s0AB rEAypJCVvPKBTT879DTgyLgEAOJ7GcL4DzGQ7XjEiQ9Bv9OZzLqA/HGnkdic5T6BRGw== 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=tPpkKbkQttGG/V3ckKn1gvqplMaGtiE+IuWWkRoa29uYtNrNx3+FUp6qPZE7/d/atJWY Lz46a6zbc7UnpVreQmub44SbnfS1N/DibZUGXBUSJCqAYs4MXrb2JuI9hTTbXbFrUdfJP Ybl8iAxqNjf0DtTUmP7ksGD4eJLBW36+U73R9Kl+f+4Ou9PijJAvUH3MFm+mADL9YvkWP 43lEkmuXxKZVTw6AuLsQrrAW6pkMvTc3K5HmfgLtakHwAJqSZr1KsXTuAhRendogPu9Ny /QxN/O6bugmIvA3vyGfT6PygS8DtRlmXjSKAs/nw2pOwdwJpO1ufKpt2+oD+YSWX++w== 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=91.218.175.154 Received: from mta0.migadu.com (out-154.mta0.migadu.com [91.218.175.154]) (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 9C2B8606A33B for ; Thu, 3 Dec 2026 02:20:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9C2B8606A33B 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-efi@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-efi@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-efi@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