runstate: cleanup reboot and panic actions
commitc27025e0448f65b67c36f962dd9e5f23f9ade735
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Jan 2021 13:30:27 +0000 (20 14:30 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Jan 2021 12:00:41 +0000 (21 13:00 +0100)
treec22f8cdd35a40d9b1857e321fa4e858ba1b6faec
parentfef80ea073c4862bc9eaddb6ddb0ed970b8ad7c4
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>
qapi/run-state.json
qemu-options.hx
softmmu/runstate-action.c
softmmu/runstate.c
softmmu/vl.c