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