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)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Jul 2022 21:41:02 +0000 (23:41 +0200)
commitdda520d07b95072a0b63f6c52a8eb566d08ea897
treee457e1200190bfd340cb32b6b7b98715996e69f8
parent7ac73fbb54d99486755910eaeccb070735908907
um: add "noreboot" command line option for PANIC_TIMEOUT=-1 setups

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>
arch/um/os-Linux/skas/process.c