From: Dominik Csapak <d.csapak@proxmox.com>
To: Kaiyang Wu <wukaiyang2003@gmail.com>, pve-devel@lists.proxmox.com
Cc: Kaiyang Wu <wukaiyang@loongfans.cn>
Subject: Re: [PATCH docs v3 2/3] qm: add document section for the pvpanic device
Date: Fri, 30 Oct 2026 15:06:45 +0100 [thread overview]
Message-ID: <6564c671-332a-44d3-ad9d-64b3a93cc84b@proxmox.com> (raw)
In-Reply-To: <20261009065813.109006-3-wukaiyang@loongfans.cn>
some comments inline
On 10/9/26 8:59 AM, Kaiyang Wu wrote:
> Document the pvpanic device and corresponding driver requirements on
> different VMs.
>
> Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
> ---
> qm.adoc | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> diff --git a/qm.adoc b/qm.adoc
> index 18a4fbe..5972fea 100644
> --- a/qm.adoc
> +++ b/qm.adoc
> @@ -1476,6 +1476,44 @@ tag (name used to mount the device on the guest).
> For more information on available virtiofsd parameters, see the
> https://gitlab.com/virtio-fs/virtiofsd[GitLab virtiofsd project page].
>
> +[[qm_pvpanic]]
> +Pvpanic
> +~~~~~~~
> +
> +Pvpanic is a device to send system panic events to QEMU. It allows to
> +provide extra VM status and execute the specified panic action when the VM
> +system crashes.
> +
> +To add a pvpanic device run the following command:
> +
> +----
> +qm set <vmid> -pvpanic enabled=1[,action=<action>]
> +----
> +
> +A panic action can be specified to perform when the VM system crashes. Available
> +panic actions are:
> +
> +* `none`: Continue VM execution
> +* `pause`: Pause the VM
> +* `shutdown`: Shutdown the VM and exit, according to the shutdown action
> +* `exit-failure`: Shutdown the VM and exit with non-zero status
> +
> +NOTE: The default panic action is `shutdown`. However, because the shutdown
> +action is set to `pause` by default, `shutdown` and `pause` both pause the
> +VM unless manually specifying the shutdown action using custom `args`.
I'd not mention the 'args' part here. This can only become wrong
if we ever expose a shutdown action anywhere.
simply writing what the current default is should be enough.
> +
> +NOTE: VMs managed by the HA stack can set `exit-failure` to exit the QEMU
> +process completely and let the HA stack start it again.
> +
> +Linux VMs with kernel >=5.2 support pvpanic PCI device by default
> +(https://www.kernelconfig.io/CONFIG_PVPANIC_PCI[pvpanic PCI driver]).
just mentioning since when it's supported should be enough.
If we really want to record this, an official kernel link would be
better, but it would be enough to put that in the commit message.
5.2 is already very old nowadays (> 6 years) so it's really just
a historical record, not an important requirement notice IMO
> +
> +Windows VMs require
> +https://github.com/virtio-win/kvm-guest-drivers-windows/[kvm-guest-drivers-windows]
> +to use pvpanic.
i'd leave the link out and simply mention the virtio-win drivers. Our
best practices and remaining docs should refer to windows guest drivers
already.
> +
> +FreeBSD VMs do not support pvpanic.
> +
> [[qm_bootorder]]
> Device Boot Order
> ~~~~~~~~~~~~~~~~~
next prev parent reply other threads:[~2026-10-30 14:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 6:58 [PATCH qemu-server/docs/manager v3 0/3] add pvpanic device support Kaiyang Wu
2026-10-09 6:58 ` [PATCH qemu-server v3 1/3] qemuserver: add pvpanic device Kaiyang Wu
2026-10-30 14:06 ` Dominik Csapak
2026-10-09 6:58 ` [PATCH docs v3 2/3] qm: add document section for the " Kaiyang Wu
2026-10-30 14:06 ` Dominik Csapak [this message]
2026-10-09 6:58 ` [PATCH manager v3 3/3] ui: qemu: add pvpanic device support Kaiyang Wu
2026-10-30 14:06 ` Dominik Csapak
2026-10-28 3:29 ` [PATCH qemu-server/docs/manager v3 0/3] " Kaiyang Wu
2026-10-30 14:06 ` Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6564c671-332a-44d3-ad9d-64b3a93cc84b@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=wukaiyang2003@gmail.com \
--cc=wukaiyang@loongfans.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox