5ff110
From fcfb306555cbae44542d3819e93a24f68b7e431a Mon Sep 17 00:00:00 2001
5ff110
Message-Id: <fcfb306555cbae44542d3819e93a24f68b7e431a@dist-git>
5ff110
From: Jiri Denemark <jdenemar@redhat.com>
5ff110
Date: Mon, 10 Sep 2018 15:10:54 +0200
5ff110
Subject: [PATCH] qemu: Properly report VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT
5ff110
MIME-Version: 1.0
5ff110
Content-Type: text/plain; charset=UTF-8
5ff110
Content-Transfer-Encoding: 8bit
5ff110
5ff110
VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT was defined but not used anywhere
5ff110
in our event generation code. This fixes qemuDomainRevertToSnapshot to
5ff110
properly report why the domain was resumed.
5ff110
5ff110
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
5ff110
Reviewed-by: John Ferlan <jferlan@redhat.com>
5ff110
(cherry picked from commit 55af06187c48a01192764d8638b85739b0178fe0)
5ff110
5ff110
https://bugzilla.redhat.com/show_bug.cgi?id=1634758
5ff110
https://bugzilla.redhat.com/show_bug.cgi?id=1634759
5ff110
5ff110
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
5ff110
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5ff110
---
5ff110
 src/qemu/qemu_driver.c | 2 +-
5ff110
 1 file changed, 1 insertion(+), 1 deletion(-)
5ff110
5ff110
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
5ff110
index c7689cc239..26aa557d9f 100644
5ff110
--- a/src/qemu/qemu_driver.c
5ff110
+++ b/src/qemu/qemu_driver.c
5ff110
@@ -16321,7 +16321,7 @@ qemuDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
5ff110
                                                  detail);
5ff110
             } else if (!was_running) {
5ff110
                 /* Transition 8 */
5ff110
-                detail = VIR_DOMAIN_EVENT_RESUMED;
5ff110
+                detail = VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT;
5ff110
                 event = virDomainEventLifecycleNewFromObj(vm,
5ff110
                                                  VIR_DOMAIN_EVENT_RESUMED,
5ff110
                                                  detail);
5ff110
-- 
5ff110
2.19.1
5ff110