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:
Pekka Enberg
2015-06-01 16:39:45 +01:00
committed by Will Deacon
parent 714e5b7f9c
commit ea7016a99a
+1 -1
View File
@@ -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