Skip to content

Commit 44958f2

Browse files
soleenakpm00
authored andcommitted
kho: warn if KHO is disabled due to an error
During boot scratch area is allocated based on command line parameters or auto calculated. However, scratch area may fail to allocate, and in that case KHO is disabled. Currently, no warning is printed that KHO is disabled, which makes it confusing for the end user to figure out why KHO is not available. Add the missing warning message. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Pasha Tatashin <[email protected]> Acked-by: Mike Rapoport (Microsoft) <[email protected]> Acked-by: Pratyush Yadav <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Baoquan He <[email protected]> Cc: Changyuan Lyu <[email protected]> Cc: Coiby Xu <[email protected]> Cc: Dave Vasilevsky <[email protected]> Cc: Eric Biggers <[email protected]> Cc: Kees Cook <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 8b66ed2 commit 44958f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/kexec_handover.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ static void __init kho_reserve_scratch(void)
564564
err_free_scratch_desc:
565565
memblock_free(kho_scratch, kho_scratch_cnt * sizeof(*kho_scratch));
566566
err_disable_kho:
567+
pr_warn("Failed to reserve scratch area, disabling kexec handover\n");
567568
kho_enable = false;
568569
}
569570

0 commit comments

Comments
 (0)