Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kho: always expose output FDT in debugfs

Currently, the output FDT is added to debugfs only when KHO is finalized
and removed when aborted.

There is no need to hide the FDT based on the state. Always expose it
starting from initialization. This aids the transition toward removing
the explicit abort functionality and converting KHO to be fully stateless.

Link: https://lkml.kernel.org/r/20251114190002.3311679-7-pasha.tatashin@soleen.com
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Baoquan He <bhe@redhat.com>
Cc: Coiby Xu <coxu@redhat.com>
Cc: Dave Vasilevsky <dave@vasilevsky.ca>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Kees Cook <kees@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Pasha Tatashin and committed by
Andrew Morton
e268689a 53f8f064

+3 -5
+3 -5
kernel/liveupdate/kexec_handover.c
··· 1234 1234 __kho_abort(); 1235 1235 kho_out.finalized = false; 1236 1236 1237 - kho_debugfs_fdt_remove(&kho_out.dbg, kho_out.fdt); 1238 - 1239 1237 return 0; 1240 1238 } 1241 1239 ··· 1303 1305 return ret; 1304 1306 1305 1307 kho_out.finalized = true; 1306 - 1307 - WARN_ON_ONCE(kho_debugfs_fdt_add(&kho_out.dbg, "fdt", 1308 - kho_out.fdt, true)); 1309 1308 1310 1309 return 0; 1311 1310 } ··· 1419 1424 pfn += pageblock_nr_pages) 1420 1425 init_cma_reserved_pageblock(pfn_to_page(pfn)); 1421 1426 } 1427 + 1428 + WARN_ON_ONCE(kho_debugfs_fdt_add(&kho_out.dbg, "fdt", 1429 + kho_out.fdt, true)); 1422 1430 1423 1431 return 0; 1424 1432