[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250428215952.1332985-1-carlos.bilbao@kernel.org>
Date: Mon, 28 Apr 2025 16:59:50 -0500
From: carlos.bilbao@...nel.org
To: tglx@...utronix.de,
seanjc@...gle.com,
jan.glauber@...il.com
Cc: bilbao@...edu,
pmladek@...e.com,
akpm@...ux-foundation.org,
jani.nikula@...el.com,
linux-kernel@...r.kernel.org,
gregkh@...uxfoundation.org,
takakura@...inux.co.jp,
john.ogness@...utronix.de,
Carlos Bilbao <carlos.bilbao@...nel.org>
Subject: [PATCH v2 0/2] panic: Reduce CPU consumption after panic
From: Carlos Bilbao <carlos.bilbao@...nel.org>
Provide a priority-based mechanism to set the behavior of the kernel at
the post-panic stage -- the current default is a waste of CPU except for
cases with console that generate insightful output.
In v1 [1], I illustrated the potential to reduce unnecessary CPU usage
with an experiment with VMs. The main delta is that, instead of a weak
function that archs can overwrite, we provide a flexible priority-based
mechanism (following suggestions by Sean Christopherson),
panic_set_handling().
[1] https://lore.kernel.org/all/20250326151204.67898-1-carlos.bilbao@kernel.org/
Carlos:
panic: Allow for dynamic custom behavior after panic
x86/panic: Add x86_panic_handler as default post-panic behavior
---
arch/x86/kernel/setup.c | 12 ++++++++++++
include/linux/panic.h | 2 ++
kernel/panic.c | 27 +++++++++++++++++++++++++++
3 files changed, 41 insertions(+)
Powered by blists - more mailing lists