From nobody Thu Nov 12 15:08:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) client-ip=38.145.34.151; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [38.145.34.151]) by mx.zohomail.com with SMTPS id 1794221063458226.98225636141683; Mon, 9 Nov 2026 02:44:23 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 09A1E41B4F; Mon, 9 Nov 2026 05:44:22 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 62BD941C46; Mon, 9 Nov 2026 05:41:57 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id E4EF83F289; Mon, 9 Nov 2026 05:41:41 -0500 (EST) Received: from fhigh-b7-smtp.messagingengine.com (fhigh-b7-smtp.messagingengine.com [202.12.124.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 264903F2FD for ; Mon, 9 Nov 2026 05:41:41 -0500 (EST) Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id BB7F07A001B for ; Mon, 9 Nov 2026 05:41:40 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 09 Nov 2026 05:41:40 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 05:41:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1794220900; x=1794307300; bh=f6VG93HX3nMAJTSrpLCJO GoNSPKxuTK3Lpu7unuisF4=; b=SJ9qz0k91w0FwHoyshDy5k/WPl3oPgrMvSH4s nX4GVPsG8Y+2JGI0HP0QGRtBlmQQ5NyaK9fw5YfjmD9AamGaplWP+lPnmjl+HtMH ohUX9QvZx76RhyseIs0NCwSBnJCcHX1TxihkXppK/ggplaYEteyBRx08jc25ffqo 4avgs8GqCxRKvg0sb5EWWxeKiOgDytyk2gfHGVkz0NpqIHPU5yC/BOy95VCSteuz 7j4zF1vvxSPsWlp4rAeAuomrksngd2TXwg8kWUrZzM+YyTG/U/imoOzwx6Vdepax vHzqLfv0Kp7Bxm5v/YEsY3NvambeBYnCyIWR8v0ztfLVJ3RYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1794220900; x=1794307300; bh=f 6VG93HX3nMAJTSrpLCJOGoNSPKxuTK3Lpu7unuisF4=; b=WVrjeBTuNbwRADSLa D6Ri87wOomz6BOycb+rKKHXNNoTMPufvMtfRQvmQAxVs9Miy21u/jmE96v0nZG3G Uq0gzmIT+ZdbhpBEz4s40xvIw/3DF3vDomOSdFD29dmGA9HiKgdll0U60h92FO8u HPX2WmfONYuntwkmxgrCm4l/R+mCXu9FcnHvnJbiCY+KvdSm251+9r4yAoIee4/Y tOEcC+EsMzscrJk9XYthovsm0jh9Q6KlJwNt00Y71H9evAJPzbqJr1wP253KHKGq ZbNjkrDWJ9NbcxbUwv2JIw/KgFs4V8tBJlfhBhcGegBrAZ3q3liDKZo5T1V83D4b OgItQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=invisiblethingslab.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1794220900; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:RACY1/BQU7Ytsswk04d5HnFiIgWrrtnl9J91PFhbfCCN25o 3hlLHCE85TFRwAaNg4LfgIV8ihj6JiJIXSKddhkWy++zf3825KzrFuI9j6RPTmJf VbHD/E9Zy28JJVvoNAheN1jLScB/rxT9EaWlHrUasonn7LdGPD17SXpRqaxtMA/j 86x2JOSWj208fzhOfMMgfGxyu8zn7aDd+dyqkpAUKp7aHI+xk19FnAr0bZ0yK5Ls +gq+v7ko6DbHdxz3kCyDxtnO0IU2Yg1XOy80i8xfglxjOMdKa9Xp6NP9oJK/sS6F GTuj6kdDHzISi8cdw9vunZqDpXwM+KoXxMPsTjA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-transfer-encoding,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:LLbPyiqyA7HgJhsJl7O83hJujaOor90QYKtV+DzjoVw=:OTDuf5LFQ5t3uG6Qimm62d6WS6HEBSw6IBekFoZ3XcY=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGd/0aQ7k6BvGn7/NkA09x3pK6XETZLK6f4Fr4NOZ2q+kcH/WL3Ij/FahcNUcIlz0 5zMTq35YbgkCtpJa2bLYK9yOZcY6po57ppyvpnYLdZFWZ0ugKwjzhEHydypfs1OtE64R7k 48QGsbRcGQHG3EWEN4du2l4Qwm4Laidwocc/Y/JpTXM30y0Q+sBiNsVVUEk35H51b1R1oh QfzgHMxgQttL1mTqVMNFDcLgmCYEZ9Mxlw6QZ92LmyiSUthCdDpoGc7eQhiNj0g5+71sUq XG8N2vzir4r9bnKH7Prh4KCNBl+8CPDlVJgkOHGqukTGSTYT0Y2VLPFDiFIwhqxr1wA4pa s3oT/otnxZzocygIMxJDR83gc2E3B5Ifdr79GoCEIM/PKYI/TOQ1XZIgBISOH4rEZbk2vS 3Ik9cP9qi0b5BoUqK7Kh/zwnwA7lJnUeVIa+2NXQjROVmqt/hgca8ocIxVYtpPUIVmNxzQ yr7+W5FMi9bWnF0QHFLM4uM2s+7iLcA+BsZYBZRAUc9fs2tLahyVaIIYfp6xNYO8UPkuaK oR6NtckUyJmF8l87ROWs2sfEiKusbM8K3y+nSy8gNJB1hT9xNYijd/jJGtWL/kZZnEU2m0 92PXQE/9SBhXrK+/Ec6NPdQlWxxXzvFyKaSJpJMexCdbiAcyMDYbuQZnWpZg X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v3 1/4] libvirt: Add stopped reason of reboot Date: Mon, 9 Nov 2026 11:40:04 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: EVECM6KA3CGFIN6TU5SERVA3ZCJDLFJT X-Message-ID-Hash: EVECM6KA3CGFIN6TU5SERVA3ZCJDLFJT X-MailFrom: ben@invisiblethingslab.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Ben Grande X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1794221066345158500 Content-Type: text/plain; charset="utf-8" If domain "on_reboot" is not set to "restart", the listener can be aware of such reboot request and run their own procedures. Resolves: https://github.com/QubesOS/qubes-issues/issues/8196 Signed-off-by: Ben Grande --- examples/c/misc/event-test.c | 3 +++ include/libvirt/libvirt-domain.h | 1 + tools/virsh-domain-event.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/c/misc/event-test.c b/examples/c/misc/event-test.c index 3e2b0a7827..1bac8d0cb8 100644 --- a/examples/c/misc/event-test.c +++ b/examples/c/misc/event-test.c @@ -239,6 +239,9 @@ eventDetailToString(int event, case VIR_DOMAIN_EVENT_STOPPED_RECREATED: return "Recreated"; =20 + case VIR_DOMAIN_EVENT_STOPPED_REBOOT: + return "Reboot"; + case VIR_DOMAIN_EVENT_STOPPED_LAST: break; } diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index 9ee153c6eb..ada0df65a7 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -5778,6 +5778,7 @@ typedef enum { VIR_DOMAIN_EVENT_STOPPED_FAILED =3D 5, /* Host emulator/mgmt failed= (Since: 0.5.0) */ VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT =3D 6, /* offline snapshot load= ed (Since: 0.8.0) */ VIR_DOMAIN_EVENT_STOPPED_RECREATED =3D 7, /* Secure guest recreatio= n (Since: 11.6.0) */ + VIR_DOMAIN_EVENT_STOPPED_REBOOT =3D 8, /* Host or guest requested r= eboot (Since: 12.9.0) */ =20 # ifdef VIR_ENUM_SENTINELS VIR_DOMAIN_EVENT_STOPPED_LAST /* (Since: 0.9.10) */ diff --git a/tools/virsh-domain-event.c b/tools/virsh-domain-event.c index 0e408a11e8..9021cdc0f8 100644 --- a/tools/virsh-domain-event.c +++ b/tools/virsh-domain-event.c @@ -108,7 +108,8 @@ VIR_ENUM_IMPL(virshDomainEventStopped, N_("Saved"), N_("Failed"), N_("Snapshot"), - N_("Recreated")); + N_("Recreated"), + N_("Reboot")); =20 VIR_ENUM_DECL(virshDomainEventShutdown); VIR_ENUM_IMPL(virshDomainEventShutdown, --=20 Benjamin Grande From nobody Thu Nov 12 15:08:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) client-ip=38.145.34.151; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [38.145.34.151]) by mx.zohomail.com with SMTPS id 1794221126526557.3452497612938; Mon, 9 Nov 2026 02:45:26 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 68F6F41B1E; Mon, 9 Nov 2026 05:45:25 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id A148841CBC; Mon, 9 Nov 2026 05:42:01 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 4C3B93F289; Mon, 9 Nov 2026 05:41:43 -0500 (EST) Received: from fhigh-b7-smtp.messagingengine.com (fhigh-b7-smtp.messagingengine.com [202.12.124.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 89F7A3F2FD for ; Mon, 9 Nov 2026 05:41:42 -0500 (EST) Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2C44C7A001B for ; Mon, 9 Nov 2026 05:41:42 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 09 Nov 2026 05:41:42 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 05:41:41 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1794220902; x=1794307302; bh=i4OPhvMc3htOzLFpLHhov POY/uLqN/BuRxYSCZXmQBs=; b=HAnUkQctpw4/lMR6GpOgJls2IDuKnKkUduz78 ROHjakwTL+oFSp7o5XdzzkK2bWNo6coxz5F8uUidf85R2TrIGbf1oRaJDvbWIWtg VgwwyoLMOajj6kSuzw9ytxTnPQg45wnFNLDfK4shj/dv/nAVdoEEtgA/Oi5oFSEt r7VYv46Tj4yz3+iS8UqFjYiY2EUByUpm1V39IKfBanVd+0qryoPMCk0ZDZkfHW6w DNUSOe0YatTomd0crfQt9dD/UDVZP9TFkJNnc75qtSb203kbPXh1zsV8PMqbaE1V qeHO59f0lgG3ZSnFK7kPHpZ3KnWuf6UAqGITeS1+fgL2fTw9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1794220902; x=1794307302; bh=i 4OPhvMc3htOzLFpLHhovPOY/uLqN/BuRxYSCZXmQBs=; b=WYUYS3JLCvMFJ0roX x4QgyjC+RfUecVEZxyi0pwFaHClSQBTRxV8fBdXHWlN4IornNkh0QFygqKXjHiRR p970iY0iFY4m3ykeLtD3nRtWi+D7ckEAYmx6+ZoUKC/X9Y2Z6yNsqjTo92zOXe2v OhwVHwcUNCHxAwMGEVv57oOeOs1Q/PqNgtBkzOswTvPPhmu8UC8p+BQ5O1Vfwe4c 3zVDDedAtU+s0sE5053m/6ATbHVu693JaK5CTfkaQ1cbX1RUhiGUGFpauuf+WMMg P+Tc+hG0xbD+HgAu/4Dg64PPBecwO89qQ9cEjxTSvgUIFdQSqaDLpAiZQvMbOlhc pLM3g== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=invisiblethingslab.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1794220902; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:MkDE/PVbWN1iNP5NyJY4xE6T4CvHtv6pBPNqp28zD6a9Nzh cDUd5Q8+D9dqmqyZ3PX9jOjDLirObprjnVfkZSthgmQ2f5t5ur8/fJ1xbI7rX0G5 f6gPoRVURDZ2Wo7twPVbmXBGVTNvsQFBoEK+B5JW5NkNJMZcjydQmc0GkXsLu87w wGM1jeQgMSAIC99mNXw1gSR8/8ADXMldo0OnhubtTN0CDnJ+loyyRWsSVbOkbqH+ xvjq8vXtWGddhQk7vcS1ccGzuP6cT3t15L4dY0+InvB9h2tx7zhMHvPaba4DAvsh d4/hXW1WP5lV6sO0LqX5z80nOXQECsX3r1YFhkA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-transfer-encoding,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:5LSreL1vMgBBjvZg+IkYicY8SBgGQn2Zn6Chq/ed7xM=:RNp2kJlfQaiGwBnUH5+swOyFyaHGgK/nM+WVBLZSIpc=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEb5GjyCQesedHTxpvK0CHVK/2UsXnWulAmoNJd9TUsPibfTv7sLOmclilyT72/DS p4MpvnFW7JcPC9BuYWtcBwfzeeq2oNnzyC2UA2++r7ApKrxM6/K4aXFM1p6YWUY919T87g YLxXIJrTK3o0sWAx8czenpqpnX3YUibFfLd/BBcCXJzPln6zzGv8wFOse/vNjSVZnu652i CFpBd7qLEeUCzhfmWWpjFWXxJmXqMiLALN0UeIGRYkRrneXd/N1WZktKKj+IRtxlF7DaQ5 vmWn+s+c87JfigAGc3WEvOYPL8t23Wc0N1W8Kw3av3PdQ2yXSAo/yRohrF3oeyNr1QkENG 6YK+GPbavOP7hkFJEBYLxDQfnlwD1b5O8oy8AiQ0vznpkhLcatNEC1a1gtG2kQU+N8fBa6 AQfyMIiK45zxaLnobbcRPuuioVGIdguIBjDMp/vV6KoW9FhI7rlMubAxuuQFFAEsFuq04Y RMzK9JXkHOcKemipYPsr0iOIwrkrJNBxOYcVOIFaQob/k5BrLPCy1fZ4ea5n4RpFD5y8PS 0ecOpiENnDThV/NIXgZ3PST5DH0K8LdIn2c4xxpDtMI84eg3jBPIvSJnW4sbWuXJ1AQYTJ 7mmJZ/rxbsfAmiOgb7HjUQTgqOU2ub40xmY3W0rNcZeY+gWwV6kpqT222D3Q X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v3 2/4] docs: libvirt-domain: briefly document reboot event Date: Mon, 9 Nov 2026 11:40:05 +0100 Message-ID: <9d25daa84962f95eedb51ccf7865a4c48bd3f0f5.1794215742.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 3ODSQVIK5RY2J3SCVOXXN3VQENUXOUPB X-Message-ID-Hash: 3ODSQVIK5RY2J3SCVOXXN3VQENUXOUPB X-MailFrom: ben@invisiblethingslab.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Ben Grande X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1794221127317158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Ben Grande --- src/libvirt-domain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index acd9ffc44b..f1d4a30c2e 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -1779,7 +1779,10 @@ virDomainShutdownFlags(virDomainPtr domain, unsigned= int flags) * Note that the guest OS may ignore the request. * Additionally, the hypervisor may check and support the domain * 'on_reboot' XML setting resulting in a domain that shuts down instead - * of rebooting. + * of rebooting. When 'on_reboot' isn't 'restart', drivers that support it= will + * emit a VIR_DOMAIN_EVENT_STOPPED lifecycle event with detail + * VIR_DOMAIN_EVENT_STOPPED_REBOOT. For more information, see + * https://libvirt.org/formatdomain.html#events-configuration * * If @flags is set to zero, then the hypervisor will choose the * method of shutdown it considers best. To have greater control --=20 Benjamin Grande From nobody Thu Nov 12 15:08:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) client-ip=38.145.34.151; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [38.145.34.151]) by mx.zohomail.com with SMTPS id 1794221205759309.6138293573275; Mon, 9 Nov 2026 02:46:45 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 9062541C09; Mon, 9 Nov 2026 05:46:44 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 6FAAA41CFB; Mon, 9 Nov 2026 05:42:08 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 2698841ADD; Mon, 9 Nov 2026 05:41:45 -0500 (EST) Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 23E493F2FD for ; Mon, 9 Nov 2026 05:41:44 -0500 (EST) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id ADF3A1D00177 for ; Mon, 9 Nov 2026 05:41:43 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Mon, 09 Nov 2026 05:41:43 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 05:41:42 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1794220903; x=1794307303; bh=3//jgiA2iBRFmnCeMiC6D Jkp2Mg7Vn8y1d7XdnM35HI=; b=hxIKuipp1alP/9WmkCbtGUBETtCCY0onMBiVX LNxUOU4ps3mTgcK7f0DMadgyLY2np/m7l+RwTZGObNuXmgH6pfqErFNJrZUm/tvd okdxuSDKWkc6UOPN3HUwzw9oTzqJFzXrs03xH5x6UMXFh8081gWgZ5f/u44Lfr1P cbO478/nW3ps4HtmA+zOj3qkbZLeLdx7pojyUashu/BH9gFyI4Yz9G5dq1rbHS8G cSUEGRVAo4rtEjVtRCP3jDcdraqcCxmjJ6UY85Eg12uaPC6kg5PjxUv6ZEp2hGue YTFzM6dRb8aM9Mh979x2jHxRcvZh1wrb1Lt1Ov6N+oDjLsnig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1794220903; x=1794307303; bh=3 //jgiA2iBRFmnCeMiC6DJkp2Mg7Vn8y1d7XdnM35HI=; b=AUiu3hkMsN3GCCJ32 w2p3gTAj+5po6odVbJD8f/59oKsqNxOIwDE0FrmpzZxjn47fCnIvvOUSgYZCTFua FsgmE7lCxgC155WiiCFvmqlDf7u5CKKpV6T/naiwmsUtoOlX1Zmd69s5QqRgv9pC exaPdeELccoYdkkywNgRkgt7XRnrN/rKRAiO5Ly3ks/IRJD+eWHlKN+OxBiwBE/O Y9LGWyiBS0vG2b+47fy7QbIdWSArG983bPFHxBgIMoMne/KJmDblHJXLXU6DSm9/ 6mG+IpB6bdrJi6Da2q0DdPUNqLNiyi0n6GMaNkNi8y9EdTbWiO4XwwPTpcOPIUiw o0OhA== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=invisiblethingslab.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1794220903; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:Oat3DuSNWyvJEX1GgglSyfsKFSlQfA0xuOanZ6YZKRZ8pGF mmLfUCHRRl1MMtnutNX194aGSoI/IATgMOW/VLQIZrDnAE0KTdjuLb36SEGJml63 RN55DjP7UDf+x41OS8LalvGNoiJ9myk6bU6lrdcXCy/CzqArk3ZzSewwxp4aavFt r8Y/PEWfSo6nvtYqKlABqFWfrRDF6ShsAvvpDQ0aE2Qgl6zD6zNXLYbOF8BhGnYs 4rcg+V0qUp7qLeD54e9Id92ZBwCVUtUi8USCDE8CVelEmEZTRDvC24zVgCcy37yW HALyh+gkNBcSPWiuivymB7le3+gCAPixKe1mQQA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-transfer-encoding,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:UnYFqDBavmQKkQbiTZ7GLMjqr8a/EBXfAGsYI06lCfo=:M1gtXIXZT57coUuwNaZOmk14bCtRtb7+ATGAp9lks+o=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGd/0aQ7k6BvGn7/NkA09x3pK6XETZLK6f4Fr4NOZ2q+kcH/WL3Ij/FahcNUcIlz0 5zMTq35YbgkCtpJa2bLYK9yOZcY6po57ppyvpnYLdZFWZ0ugKwjzhEHydypfs1OtE64R7k 48QGsbRcGQHG3EWEN4du2l4Qwm4Laidwocc/Y/JpTXM30y0Q+sBiNsVVUEk35H51b1R1oh QfzgHMxgQttL1mTqVMNFDcLgmCYEZ9Mxlw6QZ92LmyiSUthCdDpoGc7eQhiNj0g5+71sUq XG8N2vzir4r9bnKH7Prh4KCNBl+8CPDlVJgkOHGqukTGSTYT0Y2VLPFDiFIwhqxr1wA4t5 IU7svomt3FjZzTIhR2aPDmX1ARCYkj5uF6uwXmyMu1EJGkVBZe4tGaeC6SdSpKr1CDutj7 1tJly40LBsXZCCE7riZhWLVMtkArC/w3Qjgc7MC15XUIwXbGEfL4iypkEqotzy2VuSuwm9 E8fCN06ju/fqKcaLPQJAN88JCEV6NlwEBYIceYbGHZlqWYU8ACcL/qqqjipqbtEWXr4zw9 rZdgvkPvl4VTfOaX6niQDCDHeMfGT+LqB0J2aA2meY5SGCI3xVqJ/0MJL90eYk7eu/kt4F ILN9k/IVCoGTT/w9bikB4DUsLVO6Gj5qipsTb9NI7/32/XlRAK6p39KFa3IQ X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v3 3/4] drivers: Propagate stopped reason of reboot Date: Mon, 9 Nov 2026 11:40:06 +0100 Message-ID: <1dea8f1ac5dcc356cbc52934506fe25f65291acb.1794215742.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: CIA3WPRC6KKGMEQAQ46K4XX6IZXVLA5H X-Message-ID-Hash: CIA3WPRC6KKGMEQAQ46K4XX6IZXVLA5H X-MailFrom: ben@invisiblethingslab.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Ben Grande X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1794221206417158500 Content-Type: text/plain; charset="utf-8" Resolves: https://github.com/QubesOS/qubes-issues/issues/8196 Signed-off-by: Ben Grande --- src/libxl/libxl_domain.c | 2 +- src/lxc/lxc_process.c | 2 +- src/test/test_driver.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index 51dc3edcc2..808a8a333c 100644 --- a/src/libxl/libxl_domain.c +++ b/src/libxl/libxl_domain.c @@ -547,7 +547,7 @@ libxlDomainShutdownThread(void *opaque) =20 dom_event =3D virDomainEventLifecycleNewFromObj(vm, VIR_DOMAIN_EVENT_STOPPED, - VIR_DOMAIN_EVENT_STOPPED_SHUTDO= WN); + VIR_DOMAIN_EVENT_STOPPED_REBOOT= ); switch ((virDomainLifecycleAction) vm->def->onReboot) { case VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY: libxlDomainShutdownHandleDestroy(driver, vm); diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 466ce07afd..b9fa21a815 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -727,7 +727,7 @@ static void virLXCProcessMonitorExitNotify(virLXCMonito= r *mon G_GNUC_UNUSED, priv->stopReason =3D VIR_DOMAIN_EVENT_STOPPED_FAILED; break; case VIR_LXC_MONITOR_EXIT_STATUS_REBOOT: - priv->stopReason =3D VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN; + priv->stopReason =3D VIR_DOMAIN_EVENT_STOPPED_REBOOT; priv->wantReboot =3D true; break; default: diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 8546c3e251..fbde51f3e4 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2076,7 +2076,7 @@ static int testDomainReboot(virDomainPtr domain, testDomainShutdownState(domain, privdom, VIR_DOMAIN_SHUTOFF_SHUTDO= WN); event =3D virDomainEventLifecycleNewFromObj(privdom, VIR_DOMAIN_EVENT_STOPPED, - VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN= ); + VIR_DOMAIN_EVENT_STOPPED_REBOOT); =20 if (!privdom->persistent) virDomainObjListRemove(privconn->domains, privdom); --=20 Benjamin Grande From nobody Thu Nov 12 15:08:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) client-ip=38.145.34.151; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [38.145.34.151]) by mx.zohomail.com with SMTPS id 1794221257783528.4147275664975; Mon, 9 Nov 2026 02:47:37 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 964E141B50; Mon, 9 Nov 2026 05:47:36 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id BEDB141BB5; Mon, 9 Nov 2026 05:42:13 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 9CE8941AFB; Mon, 9 Nov 2026 05:41:53 -0500 (EST) Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id E0EE941AF6 for ; Mon, 9 Nov 2026 05:41:45 -0500 (EST) Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 29EDE1D0017C for ; Mon, 9 Nov 2026 05:41:45 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 09 Nov 2026 05:41:45 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 05:41:44 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1794220905; x=1794307305; bh=lQtcS4URWbYLnDrgXpxd6 Z7stik1og5hTkuhjxHvcWQ=; b=HuJ6sWe15qpJSLyQjmvGAA/PMoyC08gkpfkd/ lMYOqLqC1bN5yczfB8xHi8rDN8KL/HeXFplB66k/iBFMuwukl3/xMtnVIlsnf/JK jR5AZMrBc+lifEBHZ43XCHfKbRTMOc1UCz+5TrN9OYZxeIFYUH+J3kbtUJnuBV7N LbE7YC9YLG9WvbsgasbAcvmC5OAuOPGWA5LSsUny+YLdt3tq2ldn20EbG2o1QvGo HbeF2v7pK19GziFSnpCQrG8etiqH650kl4HJpxz6n8OyrGjaijrSc35qb/e80B65 ixj3jNyEzFafNAzBbnup5a3RUqfuO689EumSW93oaL0ugHtgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1794220905; x=1794307305; bh=l QtcS4URWbYLnDrgXpxd6Z7stik1og5hTkuhjxHvcWQ=; b=t8BMevJdr4NPApPFK wNky5x7pPho0xY84kJTZmVWhFt5b4aVI6Hrv4CztNkYYYfN9RC7c11gm2PFzdiFZ Qkryhi8CtKzIu6acnlSb3NDNyPkdZUQFONzkwGmrFPfcKJLljNV0dHoG989X/1UP 4AclA0wA3wYrHt7af/j4XaxJcOopj78ZtEFyeEjFt9fqV7DAzpE6Dv+tX2M85r6n FL3SYClFP44a8FSZRjQYnMxjN3I0eebuDwXN78QIGCaeFOs5OF4TDwT4qh7fV81V +MgKFrp+Nh4rs1tPHozJ7RA+RcUVmLeMyxMsSFo8BqvDQ1dENyFYazgPdAWPgnyw xVeIw== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=invisiblethingslab.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1794220905; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:NrT/sFKzQbV6Wyw3tM0d+vuLR1DdAN4Fogw0hvc7QCOdYEV R8ZSaXMrrRSyaBvyTsSUZ8W/dAp46EeHU6Gf0RYSGxpD2qMgX3gkfPkctEw+Coa6 pwu2zppUDEbEIh7NlW9KtxQIp888E6OBrIljGIxnbplF+H+qjfYZqwsY9hAbjgEB /jZD7Xo0GXTsbLXJ2KHnIwLITwqr4M6edtS1uL6G4DFxRjFgQYyVenq1YsjQTm1h Eb/enFUdvGpu5cQzyZpPkge0jzzDLUGwcbnDmW0aXmo/H+IeRWRE72bN2+Bo5lhX Xd8H5TeJzPkhTZu3TJhb2jv5MsZm4cNBN4ti+Iw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-transfer-encoding,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:pf41I3p9Mz9+jJUSkd19EUGxvlbS8fAgxRbCKzCnmKM=:+DVzKcw7BLrkqC7RSzK0xwshpPIZB/8sc5jxFX7kMCA=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEucCsiwWSlVSwSPAHGhNWuby6JLP8TrIEO3X8H8yLgkbGjkB4uURDjg7oQDFN0dL 3g+TlDo9kHgLzEXNHrRKyeDywlfVxH1JuD/tZ4FWtPoKuA+xdj5IOx0gV+fsrLvJ8mYwWJ ezoikh1tBjSxSt0/e1JhoNx1qWawmoIRlTj9giN2HRbcYLgwSQgb954fEZZNTNDnHNuDwW dorA3LjC9z/8HkzB2p+ABz1CMuAWO0YM+k6R3nvHSqyp3xyWnEBBQhgBQ5s/mg59A2S8uN LAkFKWe+gOGAb65NBHM6d+pmiiDyz3HQ/tlZcLWfyGjtqtKwmASUoa7G/zQn8TerUOLlTA BlUoV4xdt46YHjnmlOKsoCHBugvdZmgExevCtT8ryeGu6w8brZkAdAeL7cSExuqfmP4VzC wuBKgDizkFfL3t8EdJuVGjrqRB4hJcpSg44xfiJFOatzfUcUwSFdPTFeSdglECSJtK+2Hx j4uD/SPI1YI9GU0EaFJKB46Alva48Khi3okkQLath5SyIgUGTGhOrJMMH6OzT1VOgfILjo Dc8hF9wEOzA1Y70Ik03yoYVEf8k4VG3L2DxAJ6gVfIgVoooUHUEC03zCU8siXf7y+0VzN4 VVPsUG/f9vpTugprYvQCQj7+0uUzHFi6AwDuuIFosLQzBU7b4S5MGzePCcPA X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v3 4/4] NEWS: Introduce VIR_DOMAIN_EVENT_STOPPED_REASON Date: Mon, 9 Nov 2026 11:40:07 +0100 Message-ID: <2b159f36c77bc3145a893747a553024f54d738ae.1794215742.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: YQF2JLWEO5OGJUJ72S7SSWACSZ5EZBZA X-Message-ID-Hash: YQF2JLWEO5OGJUJ72S7SSWACSZ5EZBZA X-MailFrom: ben@invisiblethingslab.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Ben Grande X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1794221259261158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Ben Grande --- NEWS.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 802f89190a..f553e49869 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -33,8 +33,20 @@ v12.10.0 (unreleased) width reported to the guest. This allows the apparent bandwidth of a passed-through device to match the host hardware. =20 + * Introduce ``VIR_DOMAIN_EVENT_STOPPED_REBOOT`` event reason, which=20 + + Extract the shutdown reason from the hypervisor, and in case the domain + asked for reboot, the event ``VIR_DOMAIN_EVENT_STOPPED`` will have the + detail type ``VIR_DOMAIN_EVENT_STOPPED_REBOOT``. + * **Improvements** =20 + * lxc: Report reboot reason ``VIR_DOMAIN_EVENT_STOPPED_REBOOT``. + + * libxl: Report reboot reason ``VIR_DOMAIN_EVENT_STOPPED_REBOOT``. + + * test driver: Report reboot reason ``VIR_DOMAIN_EVENT_STOPPED_REBOOT``. + * **Bug fixes** =20 =20 --=20 Benjamin Grande