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