From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BA14606A326 for ; Sat, 28 Nov 2026 18:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4fmKNWui; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=jpdW3Yve DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=pbqkVKTwkANdfpPS7SBzcnIpwG/tGr47yiVJ82mmtAc=; b=4fmKNWuiOFQ0i2+T8RTKYcBXiE 75prUulga1BFPrlpHG2S5HpaouRa3gHMgXPTxBT0finxtlYw7YFLrZ3ZUia1hmzKE2r+ZpnLkxOpY fQ0HEIF2jwEc+Ahuoy5s+k8XaXtueJBbxWXMQHH5X0O1g2BtQTrqs8OzqOOZO/kw0zaHqZHWYH5V/ KT6NzPHJXZxnqgMrwIPXh71bx/7Z++lwpDnUAiazKZW2x94atJnWYtUsa8TTve6Sp8BokW5475F8h gsVGSKKJw0gaRUEWSXWNHp001Jxyl0mclMKfRl1NtHlHpWwWGf4SImnIIntcq+Jd3N6lvH7z13pap lLeoCELg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXN9T-000000016Em-2odt; Sat, 28 Nov 2026 18:27:59 +0000 Received: from mail-yx1-xb129.google.com ([2607:f8b0:4864:20::b129]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXN9N-0000000167H-1XWB for kexec@lists.infradead.org; Sat, 28 Nov 2026 18:27:55 +0000 Received: by mail-yx1-xb129.google.com with SMTP id 956f58d0204a3-67db3a48dc6so10868664d50.3 for ; Sat, 28 Nov 2026 10:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1795890472; x=1796495272; darn=lists.infradead.org; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=pbqkVKTwkANdfpPS7SBzcnIpwG/tGr47yiVJ82mmtAc=; b=jpdW3YveYoUqYq46UPtaVqdj9cvi8qTGwqC5P+dCdUMzR9igAcqPIFvxc9u5L+etoM ZTJfcejn9aRGoodvVL83MIO/PKSMiGkywsog5ZNj7LIbIYm2QKWUkWeCXYA3D20iI1ja Ezmkh5mN7QwR1on8u3NWRW/sg1myRs+wZfzWQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795890472; x=1796495272; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pbqkVKTwkANdfpPS7SBzcnIpwG/tGr47yiVJ82mmtAc=; b=T0ICEXqMvcZ++2Wx/XEBauSUt33QWqMX1A3GqULrZTFqif1LsBTwClubE+KVduh4vM vHP1ruikLZ+Iokyk1/tnVvgY0Fk87FNOo3UAECJkwFsw2ppsnIRV73SloqSfj5B1rhr7 KQ0zv8EAu4WlSInOT9GZjxSN11Wz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u1MmqrxsQLW1jlV7/WhWYDpgFI52Qc4 r4wHCXRAEj7xKO7KUmvl1suSoqtafIKi3mT3MwWJv+mUy1pEvzlRYAj4GxnaZJRk1/z5Qto1K4W vEf6elAlIHulyJzIV5Bl/HlNdaPNCTr4D8ltioP6whlmtI8Lf5r9P/Lug7seDVyWoMq48NB7nXr +d8LgyVccHxqlA5302Eqmk= X-Received: by 2002:a05:690e:12c9:b0:67c:41a:bf5b with SMTP id 956f58d0204a3-67df42b592fmr12948184d50.9.1795890472059; Sat, 28 Nov 2026 10:27:52 -0800 (PST) Received: from [172.20.0.3] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67e6aeb61d7sm2519613d50.3.2026.11.28.10.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2026 10:27:50 -0800 (PST) Date: Sat, 28 Nov 2026 10:27:49 -0800 From: Chris Down To: Mike Rapoport Cc: Pasha Tatashin , Pratyush Yadav , Alexander Graf , Baoquan He , Jonathan Corbet , Shuah Khan , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 2/9] kho: Make bootmem reservations visible to fleet monitoring In-Reply-To: References: <179443886218.2329176.10742245280418377061.b4-review@b4> <20261113003059.056dd036a6546756@chrisdown.name> Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261128_102753_449989_5902B7DE X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Mike, Mike Rapoport writes: >> I can send patches for those separately if you agree that bootmem should be >> counted in both. > >Yes, please :) Will do. >We'll need sysfs at some point to lift the requirement for debugfs mount. >And I think it can live in /sys/kernel/kho and there we can have incoming >and outgoing and the implementation can be in kernel/liveupdate/kho-sysfs.[ch] That sounds good to me, and that way kexec_core.c doesn't need to know about KHO's files at all. In v2 I'll move state, preserved_size and restored_size from 6/9 and 7/9 to /sys/kernel/kho/incoming/. Nothing in this series reports on the outgoing side, so I'll only add incoming/ for now. The bootmem size stays out of sysfs, as Pasha asked. >BTW, kexec_handover_debugfs.c was initially given the "full" name because >it lived along kexec_* in kernel. These days I believe we can make it >kho-debugfs.c Pratyush's housekeeping series [1] renames it to kho_debugfs.c, so I'll call the new file kho_sysfs.c to match. >I promise to look at the rest of the series Really Soon :) Thanks! Chris [1] https://lore.kernel.org/r/20261127122536.3708770-3-pratyush@kernel.org