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 1794225301745356.39452602660094; Mon, 9 Nov 2026 03:55:01 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 6A12F3F33E; Mon, 9 Nov 2026 06:55:00 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 0BDB641C43; Mon, 9 Nov 2026 06:52:44 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 597763F292; Mon, 9 Nov 2026 06:52:27 -0500 (EST) Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (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 8B4383F308 for ; Mon, 9 Nov 2026 06:52:26 -0500 (EST) Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 28C667A014F for ; Mon, 9 Nov 2026 06:52:26 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 09 Nov 2026 06:52:26 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 06:52:25 -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=1794225146; x=1794311546; bh=f6VG93HX3nMAJTSrpLCJO GoNSPKxuTK3Lpu7unuisF4=; b=OCczMaLMNAFjw8eOUIkvXsPCS2dptbx/8Zql0 G373NwJArCCiCfQhDIPeEXNaT4Cw+/HfJgVxHS8lyH+d569ml+lcjAy0tP51i+ee 6kaXBBJ8ZPBEU+L1MusbsGk0Ae3bFnnS6sPJEDrks7q8h7XawV+HGoR6n15B+E0X NOiZ1Ly9ndczYTObdSUUrPwYuYQ7sW9vS3GJdND0iLTVXPAsIfpk1M4f37A/GFoC g7uDr4WoDwo+UUfipATdBEyt8tCe18NYD+DByVR5rPZtigXjHitSQ95NkBAoLTQ6 V7jPSDcktDYq2ZCqLcAGiX15+OZtAYQ0zbDw1BBKMUZipw2tQ== 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=1794225146; x=1794311546; bh=f 6VG93HX3nMAJTSrpLCJOGoNSPKxuTK3Lpu7unuisF4=; b=CXu0jWc9HlS6+r5kw qNWgkj+cbJvgoWcnahNSmyTfK7XjMI1kf4xSazFiCjyA6U5z0TaaU35Km99TLCFe m987Qs2GMAk4b5xq393ReY+239u3xD7mW2DcWAVJJQaCNjEv0Voijga7sF3hD52/ cv+7WXbaPXDNvItKzYxnCUY3xxjbfIuNtbHyQwVnDe/BYxQCbYURmEL+CWDTykP7 O8/TdODkwqo2eRXufbShHAwwIUzs+d1L9Vpq/EliNFFjLRQVx0Crr+tdEeY3w2Z5 dEtlGpqVeG3iAJQPwGre8uZyydaBatlktuk34sQbrBMUZsl0iFmZPsyQkopMxLCg juLNQ== 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=1794225146; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:EtVMhu9KzNNRVn1R/45OHstMwyhKux9mJ/kQQ/owbLZjLZT D0xTmCAakaOaLOpT4lJgEgJTra15cvnzFuVh33swUix6bK4bF9PJroEgjup+s/AP y0o9OQtYOJ8Y/L8fl5gGWUqTlL3cnK1CJPiP4In1VcrbZxHhm1xx4OJjxtAordbs 6rKc/QsJpvM2I56PQumV1TJbOSBFDzBMXwyB4Ll9LbQqEEWzd2VtU7fe2MpYCJgX fpF0OKDG50nzYx6mSfG7rHdZiS2rUihcnQLjIkrqaPnEa05GesfGvp1bkrHFIJtj yJH2ZhGAaZgVpLwB0S4EktkP6NTgHs9N9/cLkyQ==; 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:jUrpSuT3Az6EzPwyqazY+peoG1i3InhG87kHK4Cw3Gc=:OTDuf5LFQ5t3uG6Qimm62d6WS6HEBSw6IBekFoZ3XcY=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFHHBGaS6QmifY1u6pSPlnUyELLSDNAJ3IqW1992koAXRvHSaTo0Gg/mRlIg3ofWt Rix3+65+AiU6ti8x0YChnsyTwJt2quOeReAklZ1zTocd3KfqzQgSntpX7ajk3gpmk9KFxu onmh/a73+mD1szq/C7lR0wkND2usmjMAJSZmhtV24ES2OZ0micWpr2mzMqNzCA4Avt6Kgl KfS8AlECahwhz/GcuOsG3hTmJ3oq+jHA+A11MGZVV6myy0WNu4FH0LJ+epe38ZlKEZqTdy /eCEPnd+BJhhNUZXuRGojElClNEFNPWXGrDQZi/2dnxjk/1rPm4xWlVAGCRDDVqIPe+mrx +M1PQuMeLI/UoLuK28RgPc0XLNUFGPJvVe7Eqx/Drkh+C5VSO+TLAuaLn2BXhadMiZupN3 Ml3/bUaoztb79mUVusDfjq0zyBVKzXo01WTnzM0Pr4X9OWDzdnRtYGzAn+c1ABcmdpAsi9 oFE2pBR/5uYmUwg7yaFOFkdcMsmQeXLG5YDuF6Bt2zrTMfvQmF3EtGAqq1KW6spXn72Z5b 1VXkjnyidNQcPg7oL8747lnJeicby4G2mXyCI/JF1oRVkrbAwVH4Gv10qQeewEY5kaMawi l3n0be98e2vi5BNt4F3EFAPD+HmgzPnmCiam05zMP8wA/ap1ujVkuuEx6yxA X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v4 1/4] libvirt: Add stopped reason of reboot Date: Mon, 9 Nov 2026 12:47:03 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: OKAYKXOCDOXJ6F6ICEADFIVKVWSSO6WT X-Message-ID-Hash: OKAYKXOCDOXJ6F6ICEADFIVKVWSSO6WT 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: 1794225304816158500 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 1794225359006567.895390318187; Mon, 9 Nov 2026 03:55:59 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id CC3E23F292; Mon, 9 Nov 2026 06:55:57 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 5727C41B44; Mon, 9 Nov 2026 06:52:48 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id A53DD3F292; Mon, 9 Nov 2026 06:52:28 -0500 (EST) Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (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 1E0513F308 for ; Mon, 9 Nov 2026 06:52:28 -0500 (EST) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id A6C9D7A0100 for ; Mon, 9 Nov 2026 06:52:27 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Mon, 09 Nov 2026 06:52:27 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 06:52:26 -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=1794225147; x=1794311547; bh=i4OPhvMc3htOzLFpLHhov POY/uLqN/BuRxYSCZXmQBs=; b=SGTsM2z+bAssqH3h51JhOKdZ1LtZVR3baTdGu EWtTquV8d4arxKInDFTd6SMOF6fIxX0BiekOSjeAgCzCt8y7X1Z27eixG/IK+Q+p b7tLMNqPMEiV68+LkHCFi8u9ttbZrmwLNskOkCa2A7H/X/gMDPYZs46/asoAL8kz UYRn7VDv2nQIyHsN3BKYrsiM4cu1EFhRyxnJAvN6sQydPPR0y0qCJB+UTHBhqaXd 95jpidAaCFiPq4KQ0lPxBKWuc5S44Cflx8WE0nv73bPEcFPyxgRcHV7Ne9BkMg2o Dka4HjJZemQbRzI8B/t/xJKzk2oa8ac4ktJXBxffYGIPWSwWw== 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=1794225147; x=1794311547; bh=i 4OPhvMc3htOzLFpLHhovPOY/uLqN/BuRxYSCZXmQBs=; b=ndMrZ052XWIS2At2L 0kGxJGqSQv+S2ZVSU0aFsQnXdql3Wm57I/IVT3IW7byS5aQKDIBJCQEiRacf36SE /jpXH1xNlXpCTVvGXmPI0u20Vln1stFbLNgQpG15PCo+nUVT6zLTT9MQK6BHrfWZ An60e7eD+uTki6ot4SHWI2X8QVrgxUP1JPYqf05XWHdxQjU3nDiRTF3BoO6VinIT dUw3qo0hIn035NlwOy1l33hF0HWFzJl3hWo0+MBIYgBMUHQSKMGwMTVV7w3Zn+CJ QXcmIq0bpjvB5fr4vNi2vhGYsKkvzOFbnB2f8niEuxbGDkkpfVzRZodgHbDi0b1Y jmxDQ== 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=1794225147; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:HUNSSaSLQg1rliy/bIo+3ylokzv7plcrwWcXlSJoUVAMS9H aLYJ/pqL1vk4cLMKvtFWhd8oRJ8qtXr6nVxlcahx/3aLfdFlGK3VKM1Ibf1Pcc/D lPRoTBu6EsRXpWslHDvkrIdGRXMQS2uPq4bVk64GQqhifUuACcFVN2ulwbVHWlnq C3BdZcmmgDjMRE7+zpS8zxW0zz/SGUIUWbhogD4/8hwvHigK3M4tf633XkicUJZ6 AWkPIVo5WbI3F1ToMNkkrbl6idAwG39s0zPP2BgnuYS7nh0iOx3dWHpxI00YPYmM 3I7xTuhiOpezqEsHTU791t+H3tRtse9+ZAImtTQ==; 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:Lhq3tEqWaN1uajjBGlYHgKQKrKFWBLOXELs5tSAM7h4=:RNp2kJlfQaiGwBnUH5+swOyFyaHGgK/nM+WVBLZSIpc=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE/31sc3aA6IPuUSyy8Ct0nQs88a54lN+LiYolSR5DfcycUxQTzQuUDTwcCT4L62I dqydGfVWsCeIpbWJn9C7+qTyK7wE/0pgBCZIIWupynv/OHtuswlQkyj1L+/rPw9om+hErk 2vTbuz9N+SgdBc9HA4WuxOJgjAoj3U4j6XmAGyMMUuLputgGOK1F4FVxV8v1eOQaGtd45f JjmqiX9UYeqdtYRN0JraUVTun8EGsn6HKZOywJ+ATXiIACAopMZieFIk3p+UzaiT6hGuaX VSErW0ltC5ReKWeVbZjauxWXg3hkJNFeOwogh5siLMdBQwzRFsNzU4MlG5GdW3220RsJNO cmuICThXGFSbaCc5uwDa35ErGRfxXW5Wtgp7uIXkKIv+AfvyrJJrxYNsFV+CiZUpOJXcpA 1jyjuHY9OnJxdmbASerdTYaEuaI5hPk0iypfBsk5HgZ3kVANOqX+3kmNKRy2+UUHP0KrWM VIYMZHpeeJdn8jq0LSr3SMoeHZRrmAaPrr/8FwhFd/ik6SHsBG/35eWs80VTtvvVkCPVeR ZdYMGtoGTbJjvP1pmEby+yZPaHms7CGV1up4g5qocpNMCehDfFuHzZ7ZN5+Xy66aL00r74 geKcYe8QqEsi8Ixs16iP/ZguF1/A0G2WDucEM/GEuwtMMF/3k82sq0FNsifg X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v4 2/4] docs: libvirt-domain: briefly document reboot event Date: Mon, 9 Nov 2026 12:47:04 +0100 Message-ID: <9d25daa84962f95eedb51ccf7865a4c48bd3f0f5.1794224718.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: WVPKLW2CTVQ6HR42JAPFRPLV3YRQBTQG X-Message-ID-Hash: WVPKLW2CTVQ6HR42JAPFRPLV3YRQBTQG 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: 1794225359694158500 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 1794225423475680.8670751858826; Mon, 9 Nov 2026 03:57:03 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 0AA8341BCF; Mon, 9 Nov 2026 06:57:02 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id D9D9241CFF; Mon, 9 Nov 2026 06:52:53 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 79BA13F292; Mon, 9 Nov 2026 06:52:30 -0500 (EST) Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (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 8F0263F308 for ; Mon, 9 Nov 2026 06:52:29 -0500 (EST) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 2C1541D0000F for ; Mon, 9 Nov 2026 06:52:29 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Mon, 09 Nov 2026 06:52:29 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 06:52:28 -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=1794225149; x=1794311549; bh=3//jgiA2iBRFmnCeMiC6D Jkp2Mg7Vn8y1d7XdnM35HI=; b=fCJ/Dh2kRRRNPNLCPtVM5R09k6j8TtybT+ZW8 bWPDdYQotSnSexq3byBNSEcJX+w5xLpgLGNTXjLsV4hh+4F5jht8jGwZQQbHlSn7 3y5rF7z3oMREG4CYEhP54iKtQUiOPrXCIPGamvRT6yubWvIgM565nGRS3LxxlMt/ hpKFJPJb7fTlGk5LEDjX6rck3UmOB+WG6oVNEG/bpasW2Zuv9gNTFvhmF9ORbG/k lYmM/ChZW5E09RvASmZ3N4jh43Q0csuL3cNvyHT++oQEtj1XyO0K/2FcEyNqcFQO BoYrgxpzYm1NAQsnXXqzkzMmEdv3TAdPlRnBjMiFs95PERqVA== 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=1794225149; x=1794311549; bh=3 //jgiA2iBRFmnCeMiC6DJkp2Mg7Vn8y1d7XdnM35HI=; b=MJzFosvD6kFHjjaVq tFxLZiA55c05P5AMQ431siCA/21eg9vTRyL7GfC5r/zocohharv+5WP/bYR8Nhmf JJGlEg6U/X/Fs+G9/0vnkoPWRzM2KZb562tjGt59+qbpsYcAQky11pFcKC2IUZz0 6Pg4M2kyHKfB7ejlKhI43z6JKCz7LAmrkZz3RqSPgGuEbNos/8UN09BabPfWjy+p S3rJl8hdyMu1/WUHnftFkQEjuiB9KRBBS1f5TsEylX5RuDfQGp+Iof1Vxs5YOpOJ mIbpvN+O3rTfH/fGvtKQA7fT35sBkK9PfoLAQG2JvHhYWfBUwIuARBWmBnt1KZv6 f1Cmw== 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=1794225149; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:juyGWYnTjzzLe4BDh9v0t9+1PQDhmddH7eF57/f9PfGeukV uldPClf6tRK1KAVK3lcXRaustEXZyXmuXrlIA3xlcjwWziZapwnQgln7Lj6jRvO0 V9HaJkG8is2fyS5ID4J7K5emzNYUQ7GOnr06PahgqgSRIWZs7xT9rttg/4xhpzFZ S3eBZk0RgUs9WTodG8odSiKY22Nvjy+7dXC45yxc0J29niCOfyojObHgCrptgfd1 ptLVB3T6w6LhabOQO/5NJu8FfcB7vaVoGjD+SZ/AMqGp9bwi12CocQ/9bd9LXEFF y7RCaHGhCuG/lRRaSgyGIm9xXV0bQwFkhbrLiyA==; 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:9DZCkYGwD1DT5ym/dyEooeWVJ514wpnnhktYo0AB7Yw=:M1gtXIXZT57coUuwNaZOmk14bCtRtb7+ATGAp9lks+o=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFHHBGaS6QmifY1u6pSPlnUyELLSDNAJ3IqW1992koAXRvHSaTo0Gg/mRlIg3ofWt Rix3+65+AiU6ti8x0YChnsyTwJt2quOeReAklZ1zTocd3KfqzQgSntpX7ajk3gpmk9KFxu onmh/a73+mD1szq/C7lR0wkND2usmjMAJSZmhtV24ES2OZ0micWpr2mzMqNzCA4Avt6Kgl KfS8AlECahwhz/GcuOsG3hTmJ3oq+jHA+A11MGZVV6myy0WNu4FH0LJ+epe38ZlKEZqTdy /eCEPnd+BJhhNUZXuRGojElClNEFNPWXGrDQZi/2dnxjk/1rPm4xWlVAGCRDDVqIPe+mjH lusk8Da5MeNrslk+je7K2UwY1CGNpwxJgF0z6j8R/ZQfIXgdW4o+PBV2a7GszOONTLN4H8 3vh9UxrmdHjTlH172VYra+NIaBzZYRqpPhWfpa60NDE9UJJzepYhFACgNle41iD6R9f2vd aLmBgaqX66xNlVEf1sdfiRZvmVdXmmM9Q0Y0ykCFgAsuFzIhD6iPNJ4Gz4PmXKeOIHyZeF sQM8mhPOTCEosrH7daldvslZ3/JWFEXirKZ7tsMbzvkKXfEIENKFy+VCfKqlX987bNSUpD sQwWedJPTWFa7SQDd8XsqeJJ+jF9zi9pnV6bnx+p2oZjo0xDmX2Ist8PYnVA X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v4 3/4] drivers: Propagate stopped reason of reboot Date: Mon, 9 Nov 2026 12:47:05 +0100 Message-ID: <1dea8f1ac5dcc356cbc52934506fe25f65291acb.1794224718.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: TRGYQRJY4UTCQT73S5ZDPIV55DGCFVZE X-Message-ID-Hash: TRGYQRJY4UTCQT73S5ZDPIV55DGCFVZE 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: 1794225425715158501 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 1794225488020139.33355925911462; Mon, 9 Nov 2026 03:58:08 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 8F63341B5A; Mon, 9 Nov 2026 06:58:06 -0500 (EST) Received: from [172.19.199.22] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 6D2E841D8D; Mon, 9 Nov 2026 06:52:58 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 7B08941B86; Mon, 9 Nov 2026 06:52:34 -0500 (EST) Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (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 0BAE93F292 for ; Mon, 9 Nov 2026 06:52:31 -0500 (EST) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 98E661D0000F for ; Mon, 9 Nov 2026 06:52:30 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Mon, 09 Nov 2026 06:52:30 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Nov 2026 06:52:29 -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=1794225150; x=1794311550; bh=79UPBWMeJcZKp6+dhgvie A0xxExhPj1EoEwuE2/tMPA=; b=kSZ8s8fdV9xRUuBFeK2Iy8vnog6P0QnoF1rsT vO7hsAs3bl95I5vo5+yEdYuHFnC/fvnwZ+WkTrNIMHUdE7ilogliiVF5aitCC95J Jlos+rrekeViwaBUZC+o0ixiFjzfY8VqrYchkjERSv/tNa2ep0g2+H/RHTbtzsEw YK+Z6PzLjDU3Ty0EwgRfkof0g6Z1O/TZFZ1/yCs+mcmTLVzINJg/dKsr1K6RRpAN KuR7nCgCu6ZqEQREeWkvAHexxqsMIjQyvzCVRMAky4FbLZrJ3QE+6KZreNb14lbE ROLlnkbb8eCZ+6AQbwgbBsYjggZaA/PMy8dIAnSngZjbjOTeQ== 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=1794225150; x=1794311550; bh=7 9UPBWMeJcZKp6+dhgvieA0xxExhPj1EoEwuE2/tMPA=; b=jTPzUAA7C2/VU+dO5 oG3qMe5G8C7GRkyiQ4fZ3dCLtZGMPYZp8nDBDmXKc8qlGoHlTscO9WYjS8w0FjYZ SicRNboNaixlY3ABecCGiH7TlCXY/VepmQAUoNv5s+rOPdnCP09EWDzPYTrXU/bb a2Jn10N5HTJg7y19fQzVww/TIuOU9j6fDJjQV+PEmwhjdCktsrjpoFlV9DSDQff0 eOUeNaIh7sWBYQqs5LEZA/uAwXQqXU2TBidG4BCPy7OwfpwrlYyo6Um/hC3IDjhJ CrWcFMzNp2LpVvwwR2L5SMC2taISMythF4DSTsnVBLFqagS91B8H+bi4xx0ePMKT l4M0Q== 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=1794225150; d=invisiblethingslab.com; mf=PGJlbkBpbnZpc2libGV0aGluZ3NsYWIuY29tPg==; rt=PGRldmVsQGxpc3RzLmxpYnZpcnQub3JnPg==; s=fm2:rsa-sha256:lM4QvSSMzDT0sk0LVoiLjuHybBLJ5Hk1sj3nS2PZJ6xCSAs EJ9XrdQNLB94BOszxnUYiVBF8Rpd4iDgWcI4h3soG2hEP/CX1Lk9KBIMvH79TnC+ SPKeFlcvaE52Jv3TsmNzLaczO+epybfRna6hhfYS/iU2+hp3wjcYf7SC9ra3GAHn Sc6iuuzoWlaoyiowj0s+vLdpDG2p3HOBqeX2t8f9+Zq/LZSE28TGi6mEKcbhMyoR es4CXE3XPU1GDVixEIb1jN5nsxFC0sMejM8QDa8+HBSYONDPJjQsz0JkwYZG+AyO JrHaYLwG83AmPb8kf+ybfJUrUrNydtU/A8hjbbg==; 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:7o8yjSGoxTOzpFvwpOaBPIP3verCCqum1SU4A+kIi1E=:O6OmlKRKLt97mMnliCFoJkYY8pmmkv4Z7VgxvOKymg4=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGbi2v0Wz7hRgNY6K6A/FXbSBthJse/4zGRwGx50eP7U/GBpgihlgMhSN/JbjF12X Ni37P4douZhnYApeS3HgeVGza8i7b/3Z9whiVdL+GDpkl9uN3DZA12s6raWhVmG0gEbIw8 NkuFG24gPU/+el0V1d+zTptYZ2jkhp14IKIzjskjROb4DyN1rN8/R2qh5bcqUaTpjiupwl pSLQBdN9Eh4AsRQjD5yN1LFwoY35KrS7wIY6WMTXorLjO/yByex7zaBBmdEsjFHKl4zPtg jE7kddwhMoutFTSeTYSGalRM0DmWR3hMoo5hnPZhfvTnJGD+G2oHGzWL/hMQrsYwgp6/ML rLmScc+Zb+KmLkBdpe70fOfeo+IlaHX+Ye1IbJhTVwXxEL2dTSwenz7GyJZrZim24QEGnx c6fXL/xoWyvyOFTpSaE9+MEnok9BMYIfZOikqO6f9lLd+MWCkjp5a3InDVUSahCjFqxLFq WH5F6PheF2VAhXI11ZdMFN6Lr6sNQs7Uttbr4CBx5FbIv+1uUJvhplAdTxUDh2D0F++fdP invblGK7Eaw5T1G+KrmtS/ophiGTw3s7ZNPqppllJd+hhfMQOmHWj5RBjdA6qmeAQzBX7f tzNnWxlmbfrDEIlelElng8iJ/3oqNuFYc8feA8cf1CuWjioCNm0Z9KRXYKbA X-ME-Proxy: Feedback-ID: iee06481b:Fastmail From: Ben Grande To: devel@lists.libvirt.org Subject: [PATCH v4 4/4] NEWS: Introduce VIR_DOMAIN_EVENT_STOPPED_REASON Date: Mon, 9 Nov 2026 12:47:06 +0100 Message-ID: <44e147b86f42e613207c1754eabe3e55632adc5d.1794224718.git.ben@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: NTUNIS6HODZMBNINU3EFOXELYIBBN5YI X-Message-ID-Hash: NTUNIS6HODZMBNINU3EFOXELYIBBN5YI 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: 1794225491075158500 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..09ff7ef3e7 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 + + 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