mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 20:51:28 +00:00
kvm run: Add 'panic=1' to default kernel options
Now that we support machine reset via i8042, add 'panic=1' to default kernel options to make sure we exit the hypervisor if the guest kernel panics. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
714e5b7f9c
commit
ea7016a99a
@@ -570,7 +570,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
vidmode = 0;
|
||||
|
||||
memset(real_cmdline, 0, sizeof(real_cmdline));
|
||||
strcpy(real_cmdline, "notsc noapic noacpi pci=conf1 reboot=k");
|
||||
strcpy(real_cmdline, "notsc noapic noacpi pci=conf1 reboot=k panic=1");
|
||||
if (vnc || sdl) {
|
||||
strcat(real_cmdline, " video=vesafb console=tty0");
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user