From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id D5BEB1FF0B2 for ; Fri, 09 Oct 2026 08:59:15 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id C3386214D0; Fri, 09 Oct 2026 08:59:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791529136; x=1792133936; darn=lists.proxmox.com; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hhl/L5nSaSEas3OmgSN+aKKkh1eD6U6zF2cztZfQNOc=; b=XWTmK3apsJGVBwFfjvAqcVCIYzQ/jY6rCTgH321BRavKcJM7ObYTLUUTtw8/qikEt0 uaI1oy2JoOyJYtqZ7k7ttSCYlNqjshyH5ywwiUNJq9bfeRf7EvK6umY43afoJ5kZ28qf yhJ9SjSXGMx8rtHnYcrdVQZEiKfHtLEqgHrxpEetflQY6Z4SLlA+TNAm7uplmgtP2VwY KddJqadoc9iwppVKTgY5QXhFQpQw1cir65t99dJZ+KqfHgZXelP7bTm9+3isqC50xULv MJXSmg1qC15TZtZr+FDWGjA1wVXvcSxmX2AOpUlVR7gv3MQcoIOVIkiUxpOTzj0BAeSR IKDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791529136; x=1792133936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hhl/L5nSaSEas3OmgSN+aKKkh1eD6U6zF2cztZfQNOc=; b=Wu/7pPx6L65rw3fZADMNzBAVJ6pXHK2S95yKGaFRHZYPN0B9ZXrxTUey8tyIvV/JvZ g7pud2XMyF1A1cVzWqmF01/cFJ3osVudrHNbkXnvNxdD2BsqHsa9z7i211kxxt7/HC2U JlGn6duJnNLT+gY6mszc50HaEUScHfkr5w7K3qJKBRujNzctzWcpPGR8tP/S5000963p BEHEQMJ7n0salfjiHzb6/CP1QhA8aE3o9iN/rO8MQ0xIY0iRAoe8ofEMHOTAcC5u34Hl DgdGkeGXgMJ7oeEiRQzmExiHxFq33tCI7N5+XEOJ3E7c+aWiGRDUVuJ0S3xdu5cDqNRu GKjg== X-Gm-Message-State: AFq9FYKqXXS6fOio9jE77q1d8JABEcvdSk7AlAz2fxRr7RXal6kHenei IXyUSDK6FUZmLOYpVTYfnWJtzTmpJfoHKy+EILYLNQL/wzy5gMiUfdAnzbnlsg== X-Gm-Gg: AYBFou017xGLx1IW7STnEGrNx52KqkCb840nkH6poVfYkD5KDnCNdbVET5uBJUvmyL3 ndjguUFUC8TwLY9SxpolAz4Kzq1c5qEtRLtuXsmlzIewY21/HKzmpZHd1s+jZyll/UysgcN6APG gLneGTB/Y7Ogy3i7tYRLDkyo55UK/n2kI88IWMt5ZVFjSR0+suj62x1s38zaps43Sq6sLrmvChf R2QS0xLTTQvmoc6Met2sFABGDReUI8AoOazktfmCScoU3cysA56450D1ehBmLGNW1NsRHuCnE+r C5fAlVdodsyN0KhzJBjDXx5xp4FgTl5tBqQwSfE7FNaKgjYtSU3cGFoBV/OPLFEKYATyNXfic12 qUCIeUj4zhi6OQ8Mq6gDlvLkJDtokPp+Sia2YcdYp4lwGO+nxaKBEKjFb0+e8U1cGj3lHIQEVEP V4J5igkfp7MICgM2RwNDPBPdsqFbx8EGx3iniZDJ0zNGCkHQ7HxfT7/3jOPc+qR+RY7l3vwsAzN u8EA64Nckpa2Eg/+G2oKD4L X-Received: by 2002:a17:90a:e7ca:b0:3ab:36c4:b500 with SMTP id 98e67ed59e1d1-3ab3a39f232mr1054657a91.5.1791529136124; Thu, 08 Oct 2026 23:58:56 -0700 (PDT) From: Kaiyang Wu X-Google-Original-From: Kaiyang Wu To: pve-devel@lists.proxmox.com Subject: [PATCH docs v3 2/3] qm: add document section for the pvpanic device Date: Fri, 9 Oct 2026 14:58:12 +0800 Message-ID: <20261009065813.109006-3-wukaiyang@loongfans.cn> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261009065813.109006-1-wukaiyang@loongfans.cn> References: <20261009065813.109006-1-wukaiyang@loongfans.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: PHVIP3ILXHNVRV6XUAD7R3FU63I2Y67Q X-Message-ID-Hash: PHVIP3ILXHNVRV6XUAD7R3FU63I2Y67Q X-MailFrom: wukaiyang2003@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Kaiyang Wu X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Document the pvpanic device and corresponding driver requirements on different VMs. Signed-off-by: Kaiyang Wu --- 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 -pvpanic enabled=1[,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`. + +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]). + +Windows VMs require +https://github.com/virtio-win/kvm-guest-drivers-windows/[kvm-guest-drivers-windows] +to use pvpanic. + +FreeBSD VMs do not support pvpanic. + [[qm_bootorder]] Device Boot Order ~~~~~~~~~~~~~~~~~ -- 2.56.0