]> Git Repo - qemu.git/commit
vl: Add option to avoid stopping VM upon guest panic
authorAlejandro Jimenez <[email protected]>
Fri, 11 Dec 2020 22:31:52 +0000 (17:31 -0500)
committerPaolo Bonzini <[email protected]>
Tue, 15 Dec 2020 17:51:58 +0000 (12:51 -0500)
commitc753e8e72548493d2a110c0482c4a987a733b033
treec8830e44baac83400639be1e8ea4bfbd39d91f7b
parent2a5ad60b5406daca3658f2a6735318615ee6a116
vl: Add option to avoid stopping VM upon guest panic

The current default action of pausing a guest after a panic event
is received leaves the responsibility to resume guest execution to the
management layer. The reasons for this behavior are discussed here:
https://lore.kernel.org/qemu-devel/52148F88.5000509@redhat.com/

However, in instances like the case of older guests (Linux and
Windows) using a pvpanic device but missing support for the
PVPANIC_CRASHLOADED event, and Windows guests using the hv-crash
enlightenment, it is desirable to allow the guests to continue
running after sending a PVPANIC_PANICKED event. This allows such
guests to proceed to capture a crash dump and automatically reboot
without intervention of a management layer.

Add an option to avoid stopping a VM after a panic event is received,
by passing:

-action panic=none

in the command line arguments, or during runtime by using an upcoming
QMP command.

Suggested-by: Paolo Bonzini <[email protected]>
Signed-off-by: Alejandro Jimenez <[email protected]>
Message-Id: <1607705564[email protected]>
[Do not fix panic action in the variable, instead modify -no-shutdown. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
include/sysemu/runstate-action.h
qapi/run-state.json
qemu-options.hx
softmmu/runstate-action.c
softmmu/runstate.c
softmmu/vl.c
This page took 0.026252 seconds and 4 git commands to generate.