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 C48A71FF09B for ; Mon, 14 Sep 2026 11:23:18 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 12159214C9; Mon, 14 Sep 2026 11:23:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789377786; x=1789982586; darn=lists.proxmox.com; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=56uTfBOKqGDPeQgH5FRbFLehYvzrneKDz3CEfyYXJ/g=; b=o3sNUUxnCA6p79YDDxOXlq99EJpO09sazhDAq3ceD0DGTO8PWYUdsYG8LoA8KLKQXg TcWAHVpXA59j/m57BgJrPOp2f2SBewGHl+Wr9lAucWzoby3O/0+sUWhVMpGhBZXTRDGJ 1HTOdyQLlIajztFY61SnXQlwVJ5826/SRhhV036a0WCl5iv265ufcU6r6zFiHsl3LApl abQpKBfSLjGgFotyQ9BTB9vJnPzx6lEMLxeuENBxfQuFe/Jl1E+fZ3PYIHE73w5UPo7W 13hbPoXR+28K6jqC8SH70hoGs2TJ29PiODWKulbChQfefrFyrX3oyzb/OeZRZyq4EtOW 0+oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789377786; x=1789982586; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=56uTfBOKqGDPeQgH5FRbFLehYvzrneKDz3CEfyYXJ/g=; b=QSSi3PuOMBlkp3nE6AnJF2hwUJlAl2Cz4IACfn2quyvWVve7b+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7soI kvUHotBtJDSWoxSPQ== X-Received: by 2002:a05:6a20:7283:b0:3d0:abdb:de03 with SMTP id adf61e73a8af0-3db404b6268mr3029457637.2.1789377786130; Mon, 14 Sep 2026 02:23:06 -0700 (PDT) Message-ID: <9a3ce87f-0bc6-4081-ac84-7f7919fbb820@gmail.com> Date: Mon, 14 Sep 2026 17:23:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH qemu-server/docs/manager 0/3] add pvpanic device support To: Dominik Csapak , pve-devel@lists.proxmox.com References: <20260827103529.393388-1-wukaiyang@loongfans.cn> <130789b4-b7e8-4181-8aca-0ff4715a3323@gmail.com> Content-Language: en-US From: Kaiyang Wu In-Reply-To: <130789b4-b7e8-4181-8aca-0ff4715a3323@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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 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: YRG3K6NPOKKQFFJPF7QNAFS7GR4PO24Q X-Message-ID-Hash: YRG3K6NPOKKQFFJPF7QNAFS7GR4PO24Q 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: Superseded by https://lore.proxmox.com/pve-devel/20260914092015.125780-1-wukaiyang@loongfans.cn/ On 2026-09-08 18:18, Kaiyang Wu wrote: > Hi Dominik, > > This series of patches currently allow to display a yellow exclamation > triangle on the web UI when a VM panics. I found the pve-manager CSS has > already reserved the icon for the guest-panicked status. > > I think the idea of making it work with the HA stack is interesting. I > will try to work on that, thanks for the suggestion! > > Best, > Kaiyang > > On 2026-09-04 16:30, Dominik Csapak wrote: >> Hi, >> >> high level question: >> >> with this series, the pvpanic device is added, but nothing on the other >> side queries it? So what's the use case here? >> >> I think it could come in handy, but we should actually do something >> with it ;) >> >> E.g. at least we could also set the panic handler in tandem: >> >> --action panic=none|shutdown|... >> >> e.g. a shutdown action on panic paired with our HA stack could >> reboot the vm (didn't test though) >> >> On 8/27/26 12:35 PM, Kaiyang Wu wrote: >>> This patchset adds pvpanic device support to QEMU virtual machines to >>> provide extra virtual machine status (guest-panicked) when virtual >>> machines panic. >>> >>> The pvpanic device can be implemented as an ISA device ('-device >>> pvpanic') or as a PCI device ('-device pvpanic-pci') [0]. The ISA >>> pvpanic device is only available on x86_64, and Linux VMs with kernel >>>> =3.1 and <5.2 only support the ISA pvpanic device [1] [2]. Therefore, >>> the patchset allows to choose between the two variants to fit different >>> needs, and adds a documentation section to help picking the variant. >>> >>> [0]: https://www.qemu.org/docs/master/specs/pvpanic.html >>> [1]: https://www.kernelconfig.io/CONFIG_PVPANIC >>> [2]: https://www.kernelconfig.io/CONFIG_PVPANIC_PCI >>> >>> >>> qemu-server: >>> >>> Kaiyang Wu (1): >>>    qemuserver: add pvpanic device >>> >>>   src/PVE/API2/Qemu.pm      |  1 + >>>   src/PVE/QemuServer.pm     | 19 +++++++++++++++++++ >>>   src/PVE/QemuServer/PCI.pm |  1 + >>>   3 files changed, 21 insertions(+) >>> >>> >>> docs: >>> >>> Kaiyang Wu (1): >>>    qm: add document section for the pvpanic device >>> >>>   qm.adoc | 29 +++++++++++++++++++++++++++++ >>>   1 file changed, 29 insertions(+) >>> >>> >>> manager: >>> >>> Kaiyang Wu (1): >>>    ui: qemu: add pvpanic device support >>> >>>   www/manager6/Makefile                |  2 ++ >>>   www/manager6/Utils.js                |  1 + >>>   www/manager6/form/PvpanicSelector.js | 12 +++++++++ >>>   www/manager6/qemu/Architecture.js    |  5 ++++ >>>   www/manager6/qemu/HardwareView.js    | 15 +++++++++++ >>>   www/manager6/qemu/PvpanicEdit.js     | 39 ++++++++++++++++++++++++++++ >>>   6 files changed, 74 insertions(+) >>>   create mode 100644 www/manager6/form/PvpanicSelector.js >>>   create mode 100644 www/manager6/qemu/PvpanicEdit.js >>> >> >