From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5B0DF4502F for ; Sun, 26 Oct 2025 04:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761451610; cv=none; b=ESYyo/YGBTRrOEFM84vq3a3vGcLaaLvxenFuFIWw9/3n9DHDdQtYzkie11klqmnedwb8J8KCcA01z4o78k8DJepK8nWmip9pSPhYMB0RGbdw/HPDDIQySsTIbCe8MINd5buJgbeIDowgbKWWI2XzPlEakrB4uYtVYsm2LRL+shY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761451610; c=relaxed/simple; bh=47PV5aOmu9fm7uS5Cq7fDc7pRJT2F77p3RfROk60aKQ=; h=Date:To:From:Subject:Message-Id; b=f8php8B1AVnTPsYVUevxbh93wHz4hN4vtXIw9E7FZYoRgNpSKKO5oTnjdK71izRLAaMgNmgnBjfFkvEtnHXnpIW1tehqxVGQY/8oxC9IVaSbNB11aqgXUzvazuVoQgdZs0olyekZ5e7GYGb0K3pa/zpDkz/KDc0FrR2yGNOpfPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HrnN2Yaf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HrnN2Yaf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA2AAC4CEE7; Sun, 26 Oct 2025 04:06:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1761451609; bh=47PV5aOmu9fm7uS5Cq7fDc7pRJT2F77p3RfROk60aKQ=; h=Date:To:From:Subject:From; b=HrnN2Yaf1kv78DsSRICI4lyO5d+DwCqGPS5k+Ns8cXJGj8kZ/7Zh6H+6hXSaDo98I WXrtI5QuMezOavhQEOiqfCMlCEQxiVZNiyoTgeY4HsTQrJRebw3cPxUhgh4rAXfATN Efzhq/3sfhN3+QP9fy1WvFL8COzC06hbsuED/7Mg= Date: Sat, 25 Oct 2025 21:06:49 -0700 To: mm-commits@vger.kernel.org,tj@kernel.org,rppt@kernel.org,rdunlap@infradead.org,pratyush@kernel.org,ojeda@kernel.org,masahiroy@kernel.org,jgg@ziepe.ca,jgg@nvidia.com,graf@amazon.com,corbet@lwn.net,brauner@kernel.org,pasha.tatashin@soleen.com,akpm@linux-foundation.org From: Andrew Morton Subject: + liveupdate-kho-move-kho-debugfs-directory-to-liveupdate.patch added to mm-nonmm-unstable branch Message-Id: <20251026040649.BA2AAC4CEE7@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: liveupdate: kho: move kho debugfs directory to liveupdate has been added to the -mm mm-nonmm-unstable branch. Its filename is liveupdate-kho-move-kho-debugfs-directory-to-liveupdate.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/liveupdate-kho-move-kho-debugfs-directory-to-liveupdate.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Pasha Tatashin Subject: liveupdate: kho: move kho debugfs directory to liveupdate Date: Fri, 24 Oct 2025 12:10:01 -0400 Now, that LUO and KHO both live under kernel/liveupdate, it makes sense to also move the kho debugfs files to liveupdate/ in order to keep current and upcoming LUO/KHO features organized. The old names: /sys/kernel/debug/kho/out/ /sys/kernel/debug/kho/in/ The new names: /sys/kernel/debug/liveupdate/kho_out/ /sys/kernel/debug/liveupdate/kho_in/ Also, export the liveupdate_debufs_root, so future LUO selftests, kexec telemtry, and other users could use it as well. Link: https://lkml.kernel.org/r/20251024161002.747372-8-pasha.tatashin@soleen.com Signed-off-by: Pasha Tatashin Cc: Alexander Graf Cc: Christian Brauner Cc: Jason Gunthorpe Cc: Jason Gunthorpe Cc: Jonathan Corbet Cc: Masahiro Yamada Cc: Miguel Ojeda Cc: "Mike Rapoport (Microsoft)" Cc: Pratyush Yadav Cc: Randy Dunlap Cc: Tejun Heo Signed-off-by: Andrew Morton --- kernel/liveupdate/kexec_handover_debugfs.c | 10 +++++----- kernel/liveupdate/kexec_handover_internal.h | 2 ++ tools/testing/selftests/kho/init.c | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) --- a/kernel/liveupdate/kexec_handover_debugfs.c~liveupdate-kho-move-kho-debugfs-directory-to-liveupdate +++ a/kernel/liveupdate/kexec_handover_debugfs.c @@ -15,7 +15,7 @@ #include #include "kexec_handover_internal.h" -static struct dentry *debugfs_root; +struct dentry *liveupdate_debugfs_root; struct fdt_debugfs { struct list_head list; @@ -118,7 +118,7 @@ __init void kho_in_debugfs_init(struct k INIT_LIST_HEAD(&dbg->fdt_list); - dir = debugfs_create_dir("in", debugfs_root); + dir = debugfs_create_dir("kho_in", liveupdate_debugfs_root); if (IS_ERR(dir)) { err = PTR_ERR(dir); goto err_out; @@ -178,7 +178,7 @@ __init int kho_out_debugfs_init(struct k INIT_LIST_HEAD(&dbg->fdt_list); - dir = debugfs_create_dir("out", debugfs_root); + dir = debugfs_create_dir("kho_out", liveupdate_debugfs_root); if (IS_ERR(dir)) return -ENOMEM; @@ -212,8 +212,8 @@ err_rmdir: __init int kho_debugfs_init(void) { - debugfs_root = debugfs_create_dir("kho", NULL); - if (IS_ERR(debugfs_root)) + liveupdate_debugfs_root = debugfs_create_dir("liveupdate", NULL); + if (IS_ERR(liveupdate_debugfs_root)) return -ENOENT; return 0; } --- a/kernel/liveupdate/kexec_handover_internal.h~liveupdate-kho-move-kho-debugfs-directory-to-liveupdate +++ a/kernel/liveupdate/kexec_handover_internal.h @@ -15,6 +15,8 @@ struct kho_debugfs { struct list_head fdt_list; }; +extern struct dentry *liveupdate_debugfs_root; + #else struct kho_debugfs {}; #endif --- a/tools/testing/selftests/kho/init.c~liveupdate-kho-move-kho-debugfs-directory-to-liveupdate +++ a/tools/testing/selftests/kho/init.c @@ -11,7 +11,7 @@ /* from arch/x86/include/asm/setup.h */ #define COMMAND_LINE_SIZE 2048 -#define KHO_FINALIZE "/debugfs/kho/out/finalize" +#define KHO_FINALIZE "/debugfs/liveupdate/kho_out/finalize" #define KERNEL_IMAGE "/kernel" static int mount_filesystems(void) _ Patches currently in -mm which might be from pasha.tatashin@soleen.com are liveupdate-kho-warn-and-fail-on-metadata-or-preserved-memory-in-scratch-area.patch liveupdate-kho-increase-metadata-bitmap-size-to-page_size.patch liveupdate-kho-allocate-metadata-directly-from-the-buddy-allocator.patch kho-allow-to-drive-kho-from-within-kernel.patch kho-make-debugfs-interface-optional.patch kho-add-interfaces-to-unpreserve-folios-and-page-ranges.patch kho-dont-unpreserve-memory-during-abort.patch liveupdate-kho-move-to-kernel-liveupdate.patch liveupdate-kho-move-kho-debugfs-directory-to-liveupdate.patch memblock-unpreserve-memory-in-case-of-error.patch