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