]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
include: s/RECREATION/RECREATED/ in domain event names
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 28 Jul 2025 10:34:24 +0000 (11:34 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 28 Jul 2025 12:46:25 +0000 (13:46 +0100)
New event reasons were added in

  commit 1af740c5012bb45dfe96c77bcd6b20c28b6bb45d
  Author: Zhenzhong Duan <zhenzhong.duan@intel.com>
  Date:   Thu Jul 10 03:21:21 2025 -0400

    qemu: Send event VIR_DOMAIN_EVENT_[STOPPED|STARTED] during recreation

but the naming did not match existing reason names, so adapt
to match. The version tags are also updated to reflect when
this was merged.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
examples/c/misc/event-test.c
include/libvirt/libvirt-domain.h
src/qemu/qemu_process.c
tools/virsh-domain-event.c

index bafa929c471edaa11fbcb6f0badbb6e3a5b64212..347ec44682cc794160f92b5364f5a472f2e55d3a 100644 (file)
@@ -143,8 +143,8 @@ eventDetailToString(int event,
             case VIR_DOMAIN_EVENT_STARTED_WAKEUP:
                 return "Event wakeup";
 
-            case VIR_DOMAIN_EVENT_STARTED_RECREATION:
-                return "Recreation";
+            case VIR_DOMAIN_EVENT_STARTED_RECREATED:
+                return "Recreated";
 
             case VIR_DOMAIN_EVENT_STARTED_LAST:
                 break;
@@ -230,8 +230,8 @@ eventDetailToString(int event,
             case VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT:
                 return "Snapshot";
 
-            case VIR_DOMAIN_EVENT_STOPPED_RECREATION:
-                return "Recreation";
+            case VIR_DOMAIN_EVENT_STOPPED_RECREATED:
+                return "Recreated";
 
             case VIR_DOMAIN_EVENT_STOPPED_LAST:
                 break;
index fad58cf4098f17799218f755b63e66ef9748774e..71bb49fe6cdf11b1547d6b86ef7cbabaf781749d 100644 (file)
@@ -5051,7 +5051,7 @@ typedef enum {
     VIR_DOMAIN_EVENT_STARTED_RESTORED = 2, /* Restored from a state file (Since: 0.5.0) */
     VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT = 3, /* Restored from snapshot (Since: 0.8.0) */
     VIR_DOMAIN_EVENT_STARTED_WAKEUP = 4,   /* Started due to wakeup event (Since: 0.9.11) */
-    VIR_DOMAIN_EVENT_STARTED_RECREATION = 5, /* Secure guest recreation (Since: 10.1.0) */
+    VIR_DOMAIN_EVENT_STARTED_RECREATED = 5, /* Secure guest recreation (Since: 11.6.0) */
 
 # ifdef VIR_ENUM_SENTINELS
     VIR_DOMAIN_EVENT_STARTED_LAST /* (Since: 0.9.10) */
@@ -5116,7 +5116,7 @@ typedef enum {
     VIR_DOMAIN_EVENT_STOPPED_SAVED = 4,     /* Saved to a state file (Since: 0.5.0) */
     VIR_DOMAIN_EVENT_STOPPED_FAILED = 5,    /* Host emulator/mgmt failed (Since: 0.5.0) */
     VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT = 6, /* offline snapshot loaded (Since: 0.8.0) */
-    VIR_DOMAIN_EVENT_STOPPED_RECREATION = 7,    /* Secure guest recreation (Since: 10.1.0) */
+    VIR_DOMAIN_EVENT_STOPPED_RECREATED = 7,    /* Secure guest recreation (Since: 11.6.0) */
 
 # ifdef VIR_ENUM_SENTINELS
     VIR_DOMAIN_EVENT_STOPPED_LAST /* (Since: 0.9.10) */
index 8f3d357b9f4c0c5860222e631f255111ac9cdb9a..6b7b971f27ee2c65522d39494c29fe80bd993970 100644 (file)
@@ -476,7 +476,7 @@ qemuProcessFakeRebootViaRecreate(virDomainObj *vm, bool locked)
 
     event = virDomainEventLifecycleNewFromObj(vm,
                                               VIR_DOMAIN_EVENT_STOPPED,
-                                              VIR_DOMAIN_EVENT_STOPPED_RECREATION);
+                                              VIR_DOMAIN_EVENT_STOPPED_RECREATED);
     virObjectEventStateQueue(driver->domainEventState, event);
 
     /* skip remove inactive domain from active list */
@@ -501,7 +501,7 @@ qemuProcessFakeRebootViaRecreate(virDomainObj *vm, bool locked)
     virDomainAuditStart(vm, "booted", true);
     event = virDomainEventLifecycleNewFromObj(vm,
                                               VIR_DOMAIN_EVENT_STARTED,
-                                              VIR_DOMAIN_EVENT_STARTED_RECREATION);
+                                              VIR_DOMAIN_EVENT_STARTED_RECREATED);
     virObjectEventStateQueue(driver->domainEventState, event);
 
     qemuDomainSaveStatus(vm);
index 21dbf6e1d2ef6ddbdaa87cb41ea884b878ddaa0c..a47fdfc7fd09866397a65c526598a4533cbba9a6 100644 (file)
@@ -72,7 +72,7 @@ VIR_ENUM_IMPL(virshDomainEventStarted,
               N_("Restored"),
               N_("Snapshot"),
               N_("Event wakeup"),
-              N_("Recreation"));
+              N_("Recreated"));
 
 VIR_ENUM_DECL(virshDomainEventSuspended);
 VIR_ENUM_IMPL(virshDomainEventSuspended,
@@ -106,7 +106,7 @@ VIR_ENUM_IMPL(virshDomainEventStopped,
               N_("Saved"),
               N_("Failed"),
               N_("Snapshot"),
-              N_("Recreation"));
+              N_("Recreated"));
 
 VIR_ENUM_DECL(virshDomainEventShutdown);
 VIR_ENUM_IMPL(virshDomainEventShutdown,