From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 9039B1FF09C for ; Mon, 02 Nov 2026 10:56:06 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 300BB216EC; Mon, 02 Nov 2026 10:55:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793613346; x=1794218146; 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=yrOgbgcD//NvyaEUb/4uq5FMp+FBn3rhilGR1wTBHWc=; b=fyaH0RXJuKaC6qzyxjKr8ElhIkeWgVXZJ4CTkBqkschb7LqWBQ6sH44EEh/urzJ1J0 CCbFgCHrxPCxihf+yOKgom3+hwcCn3+DH0gz7NUU4QK/Jy6ABW0XYC7QmjmT/IlFlrhV Hsss9ELVkOn0a9IZD1RD7MxYk0Hjfn2BGeUSujFk0c8OZBcmFzO6aTNB8Y0O18ka+Dia IzuXH4XFphnR7HNYQ4SaLao6WTpdmmAuTBrzO+F9Q0KqCNO2fSa5l9gG/rQFpZZjznBU IgdKzXNBm62v43/LM75JljnEpQFY+WngIL2mn6Nuu7twEtGy/CrjiFdLsurIqoWef8RQ OtJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793613346; x=1794218146; 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=yrOgbgcD//NvyaEUb/4uq5FMp+FBn3rhilGR1wTBHWc=; b=Asq8cScnjzhlXLgv6ooUUhKrh/StNNuHpDk42VVBlE7RSOLUUz5dzuUPbs91v7d1sY jAS5MKHUo37gDTlOI8CK89Owoa4mtPICIGzIC/ZkPA/zyMFfUdXJ2g9Rf1sggPB0FSqz Izv+kh8/dDoIczEDqsV9Yl6KdF9Ngjef7YNCjvCeLUJxCenOaJFJJy8tCyVbPf4xzJeY JhDX9Z6tHgZrQGMOHeJHhVbQvvwlBBQP2CrMT04h+J2pmYha2oilExtg79R2t54W22HI uBAMkc1nqSw1EjZumwvYic+5tdfUZu0raqk4IHRlAEMweuy86kpDAL4eILEFJTvzY086 eiUA== X-Gm-Message-State: APuU4Z9Ws5sBDW6NdSo78BrQsQ84FqvBRdvT6EZWyNgSAZY6+aeN0dva MsfTvvXxpaJ4HNxeMnAKy9RO4xw80RG2EFQW0uRgqRRhzm2aeq7gK58ZVAKoST4W X-Gm-Gg: AYBFou3onpy9C2QWXFtOePmyjykMuo9J4b0VfmfAJLuLsiNaxNw8wcIxPeKwpIcJrX0 oWBG/mzfqhWUhL46HQQfaXuJdBLy2vd7mnOvil1p6AvJ/bphker5tCVzMOJXWNffn6abgZP6IdN YgAo34yxm3PTweFHrnupkAf50X9lUVSGzrJHUOrm9TI0547YvTk+fbcYHnwZGJ55F8eN/b3blxL gP45MI1EGUHYhPu4JlgCBj/X0czaBTCvWNnapP7C7SzwKhefonsp2ah+cVYPvoXEMuZxg7MNV6r +z3ETW8CtzlC8U4+I/iZTG9eL1rvifH4J0+P13nGVHD+uIAq3W43v+ctAl1JcmlaHRqoTbcc5am k5MuNUuFULCsQhtkjaMYxsTdPzZOY79gBwULjb1OI2v38XIR92xRuCTgh+BXWmVYhP66aY8Ksa/ M+LouncQP1dReER5wuOfOitnKVExtR4tzK5dpkJwBtVi3sIEpOx4HoOoagCHF3eyA0salBIs5jr dmGYURBRn2iQ1scrEmpq+bLTJl4+yiyvQNKKjRtFj8jdWaWYnC7Hrb3v6BM4uECmRFLUE9hOgHw HgruQqILvTqTP+66CoODvzgqYkfNXIJtUWfEDOZveaY= X-Received: by 2002:a17:902:e88f:b0:2e8:6540:11b0 with SMTP id d9443c01a7336-2eb36464449mr94846285ad.38.1793613345639; Mon, 02 Nov 2026 01:55:45 -0800 (PST) From: Kaiyang Wu X-Google-Original-From: Kaiyang Wu To: pve-devel@lists.proxmox.com Subject: [PATCH docs v4 2/3] qm: add document section for the pvpanic device Date: Mon, 2 Nov 2026 17:55:24 +0800 Message-ID: <20261102095525.1635251-3-wukaiyang@loongfans.cn> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261102095525.1635251-1-wukaiyang@loongfans.cn> References: <20261102095525.1635251-1-wukaiyang@loongfans.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 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: J6X3TLGBQ4UK2EB65GOT54OCLOEKX7CF X-Message-ID-Hash: J6X3TLGBQ4UK2EB65GOT54OCLOEKX7CF 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. Suggested-by: Dominik Csapak Signed-off-by: Kaiyang Wu --- qm.adoc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/qm.adoc b/qm.adoc index 18a4fbe..a994372 100644 --- a/qm.adoc +++ b/qm.adoc @@ -1476,6 +1476,40 @@ 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 perform 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`. + +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. + +Windows VMs require https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers[Windows +VirtIO Drivers] to use pvpanic. + +FreeBSD VMs do not support pvpanic. + [[qm_bootorder]] Device Boot Order ~~~~~~~~~~~~~~~~~ -- 2.56.0