Do not stop guest when panic event is received
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | vl: Add -no-panicstop optionqemu-options.hx softmmu/ | +25 | 0 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Mark Kanda |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/1] Do not stop guest when panic event is received
The following patch adds an option to request that QEMU does not stop the VM when a panic event is received. This allows guests in cloud environments to report the panic condition to the control plane, but be able to proceed to collect a crash dump and automatically reboot, without waiting to receive one or several 'cont' monitor commands.
I am aware of a previous discussion regarding the decision to stop the guest on panic event:
https://lore.kernel.org/qemu-devel/[email protected]/
that is why I propose explicitly using a parameter to change the default behavior when necessary.
The PVPANIC_CRASHLOADED event was introduced in the v5.6 kernel, and it is intended to tell QEMU that the guest will handle the panic condition by itself, but unfortunately older kernels will only support sending the PVPANIC_PANICKED event, for which the default behavior is to pause the VM.
Having a '-no-panicstop' option allows for older guest kernels that do not support the PVPANIC_CRASHLOADED event to behave in the same way as newer kernels, simplifying control plane code. It also provides the same advantage when launching Windows guests with the hv-crash enlightenment, since the hv-crash MSR writes are ultimately handled by QEMU as if the guest had sent a PVPANIC_PANICKED event.
The fact that the behavior of hv-crash is also affected is why I chose to implement this change as an independent option, as opposed to making it a property of the pvpanic device (e.g. -device pvpanic,no-panicstop).
Please let me know if you have any comments or suggestions.
Regards,
Alejandro
Alejandro Jimenez (1):
vl: Add -no-panicstop option
qemu-options.hx | 11 +++++++++++ softmmu/vl.c | 17 ++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.3.1