um: add "noreboot" command line option for PANIC_TIMEOUT=-1 setups
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 13 Jul 2022 11:56:17 +0000 (13:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:37 +0000 (11:40 +0200)
commite799817b67b3f966a5ef0030a14f49889c645d6d
tree6ddf925ea28d187be3b34d0f5753a032178755a7
parent405f655ee7f64f95c6dcd2ddb86a4dd54d478544
um: add "noreboot" command line option for PANIC_TIMEOUT=-1 setups

[ Upstream commit dda520d07b95072a0b63f6c52a8eb566d08ea897 ]

QEMU has a -no-reboot option, which halts instead of reboots when the
guest asks to reboot. This is invaluable when used with
CONFIG_PANIC_TIMEOUT=-1 (and panic_on_warn), because it allows panics
and warnings to be caught immediately in CI. Implement this in UML too,
by way of a basic setup param.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/os-Linux/skas/process.c