mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
runstate: cleanup reboot and panic actions
The possible choices for panic, reset and watchdog actions are inconsistent. "-action panic=poweroff" should be renamed to "-action panic=shutdown" on the command line. This is because "-action panic=poweroff" and "-action watchdog=poweroff" have slightly different semantics, the first does an unorderly exit while the second goes through qemu_cleanup(). With this change, -no-shutdown would not have to change "-action panic=pause" "pause", just like it does not have to change the reset action. "-action reboot=none" should be renamed to "-action reboot=reset". This should be self explanatory, since for example "-action panic=none" lets the guest proceed without taking any action. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fef80ea073
commit
c27025e044
5 changed files with 17 additions and 14 deletions
|
@ -3900,12 +3900,12 @@ SRST
|
|||
ERST
|
||||
|
||||
DEF("action", HAS_ARG, QEMU_OPTION_action,
|
||||
"-action reboot=none|shutdown\n"
|
||||
" action when guest reboots [default=none]\n"
|
||||
"-action reboot=reset|shutdown\n"
|
||||
" action when guest reboots [default=reset]\n"
|
||||
"-action shutdown=poweroff|pause\n"
|
||||
" action when guest shuts down [default=poweroff]\n"
|
||||
"-action panic=poweroff|pause|none\n"
|
||||
" action when guest panics [default=poweroff]\n"
|
||||
"-action panic=pause|shutdown|none\n"
|
||||
" action when guest panics [default=shutdown]\n"
|
||||
"-action watchdog=reset|shutdown|poweroff|inject-nmi|pause|debug|none\n"
|
||||
" action when watchdog fires [default=reset]\n",
|
||||
QEMU_ARCH_ALL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue