vl: Add an -action option specifying response to guest events
commit2a5ad60b5406daca3658f2a6735318615ee6a116
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Fri, 11 Dec 2020 16:52:41 +0000 (11 11:52 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:58 +0000 (15 12:51 -0500)
tree5266ea57f65b64dd639e169110611ff6624a7651
parente6dba0481363ad343c5f984dd4de3dd06d79ee68
vl: Add an -action option specifying response to guest events

Several command line options currently in use are meant to modify
the behavior of QEMU in response to certain guest events like:
-no-reboot, -no-shutdown, -watchdog-action.

These can be grouped into a single option of the form:

-action event=action

Which can be used to specify the existing options above in the
following format:

-action reboot=none|shutdown
-action shutdown=poweroff|pause
-action watchdog=reset|shutdown|poweroff|pause|debug|none|inject-nmi

This is done in preparation for adding yet another option of this
type, which modifies the QEMU behavior when a guest panic occurs.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Message-Id: <1607705564-26264-2-git-send-email-alejandro.j.jimenez@oracle.com>
[Use QemuOpts help support, invoke QMP command. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-options.hx
softmmu/vl.c