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 71AF41FF09C for ; Mon, 02 Nov 2026 10:55:51 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9E43B216B1; Mon, 02 Nov 2026 10:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793613336; x=1794218136; darn=lists.proxmox.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=IZTWyWkM/NDdNqfCsKzxO34EnjRvYR+eqelJVjAYG5w=; b=ND6pwMFv3lCjYuZjcgD49pJ0qWpGr5pEnYc5f3GALn6KUj/4ulTDY2ip7ltcxEIW67 HConfcDsKRvIeQo0C1fowjGW09sL90DWRqz2leaG5HPUI9Pj7FajADRYLTSTCn6XRnx4 kZ0bPvSLvNT5ZaxMh8b4vXSCIYIgzs3bdlA05xATearG3VbOBFhxObZj5i/8QnJhYvh9 O/I0Hc1bBj1QEJHGW5lhFidb2nWO1KW/7v6v+TkFUZeHUB9LucGEcuGyOdkfyt4J8VpW slxBuMpjzXlcTLRZthKpm8N26Jz/q9iHfhZ4iTwPDMs0cswQPC7iGRmzf2gTYgBh6Ocu ljAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793613336; x=1794218136; h=content-transfer-encoding:mime-version: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=IZTWyWkM/NDdNqfCsKzxO34EnjRvYR+eqelJVjAYG5w=; b=lCkI2QIVkmNkd1BrlA7F6WAuqXxhdId4SAelEYza+jcz5gpIUwyPCh8GZDCOAS/Rp3 vf75SOB5mYcywB5soUzQ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SMTP id d9443c01a7336-2eb3650cf57mr91651415ad.53.1793613335205; Mon, 02 Nov 2026 01:55:35 -0800 (PST) From: Kaiyang Wu X-Google-Original-From: Kaiyang Wu To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server v4 0/3] add pvpanic device support Date: Mon, 2 Nov 2026 17:55:22 +0800 Message-ID: <20261102095525.1635251-1-wukaiyang@loongfans.cn> X-Mailer: git-send-email 2.56.0 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: I3R4T54SBVNBBOJY36Z3L6RMM7TPO6RV X-Message-ID-Hash: I3R4T54SBVNBBOJY36Z3L6RMM7TPO6RV 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: This patchset adds pvpanic device support to QEMU virtual machines to provide extra virtual machine status (guest-panicked) when virtual machines panic [0] and perform panic actions. [0]: https://www.qemu.org/docs/master/specs/pvpanic.html v1: https://lore.proxmox.com/pve-devel/20260827103529.393388-1-wukaiyang@loongfans.cn/ v2: https://lore.proxmox.com/pve-devel/20260914092015.125780-1-wukaiyang@loongfans.cn/ v3: https://lore.proxmox.com/pve-devel/20261009065813.109006-1-wukaiyang@loongfans.cn/ Changes v1 -> v2: - Remove the pvpanic ISA device support to simplify the code - Move the pvpanic setting from Hardware to Options - Restart a HA-managed VM when it panics to restore the "started" state Changes v2 -> v3: - Allow to set panic action. The HA stack automatically restarts a panicked VM when the VM exits using the 'exit-failure' panic action Changes v3 -> v4: - Specify the default panic action (shutdown) in the 'pvpanic_fmt' schema - Mention only the default panic action in the documentation - Mention only since when the pvpanic-pci device is supported in the Linux kernel in the documentation - Briefly mention Windows VirtIO Drivers in the pvpanic section - Make panic actions translatable in the manager qemu-server: Kaiyang Wu (1): qemuserver: add pvpanic device src/PVE/API2/Qemu.pm | 1 + src/PVE/QemuServer.pm | 43 +++++++++++++++++++++++++++++++++++++++ src/PVE/QemuServer/PCI.pm | 1 + 3 files changed, 45 insertions(+) docs: Kaiyang Wu (1): qm: add document section for the pvpanic device qm.adoc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) manager: Kaiyang Wu (1): ui: qemu: add pvpanic device support www/manager6/Makefile | 1 + www/manager6/Utils.js | 18 +++++++++ www/manager6/form/PvpanicSelector.js | 56 ++++++++++++++++++++++++++++ www/manager6/qemu/Options.js | 16 ++++++++ 4 files changed, 91 insertions(+) create mode 100644 www/manager6/form/PvpanicSelector.js -- 2.56.0