|
|
6d3351 |
From e94894df02d97bac7169433fdcf595bd526eafd1 Mon Sep 17 00:00:00 2001
|
|
|
6d3351 |
Message-Id: <e94894df02d97bac7169433fdcf595bd526eafd1@dist-git>
|
|
|
6d3351 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
6d3351 |
Date: Fri, 28 Apr 2017 15:56:44 +0200
|
|
|
6d3351 |
Subject: [PATCH] qemu: Don't reset "events" migration capability
|
|
|
6d3351 |
|
|
|
6d3351 |
When creating v3.2.0-77-g8be3ccd04 commit, I completely forgot that one
|
|
|
6d3351 |
migration capability is very special. It's the "events" capability which
|
|
|
6d3351 |
tells QEMU to report "MIGRATION" events. Since libvirt always wants the
|
|
|
6d3351 |
events, it is enabled in qemuConnectMonitor and the rest of the code
|
|
|
6d3351 |
should not touch it.
|
|
|
6d3351 |
|
|
|
6d3351 |
https://bugzilla.redhat.com/show_bug.cgi?id=1439841
|
|
|
6d3351 |
https://bugzilla.redhat.com/show_bug.cgi?id=1441165
|
|
|
6d3351 |
|
|
|
6d3351 |
Messed-up-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
6d3351 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
6d3351 |
(cherry picked from commit fc48fc7930f560c4341f4afe1285848dfdb60278)
|
|
|
6d3351 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
6d3351 |
---
|
|
|
6d3351 |
src/qemu/qemu_migration.c | 5 +++++
|
|
|
6d3351 |
1 file changed, 5 insertions(+)
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
|
|
|
6d3351 |
index cadbf9b97..ac7e27319 100644
|
|
|
6d3351 |
--- a/src/qemu/qemu_migration.c
|
|
|
6d3351 |
+++ b/src/qemu/qemu_migration.c
|
|
|
6d3351 |
@@ -5888,6 +5888,11 @@ qemuMigrationReset(virQEMUDriverPtr driver,
|
|
|
6d3351 |
goto cleanup;
|
|
|
6d3351 |
|
|
|
6d3351 |
for (cap = 0; cap < QEMU_MONITOR_MIGRATION_CAPS_LAST; cap++) {
|
|
|
6d3351 |
+ /* "events" capability is set (when supported) in qemuConnectMonitor
|
|
|
6d3351 |
+ * and should never be cleared */
|
|
|
6d3351 |
+ if (cap == QEMU_MONITOR_MIGRATION_CAPS_EVENTS)
|
|
|
6d3351 |
+ continue;
|
|
|
6d3351 |
+
|
|
|
6d3351 |
if (qemuMigrationSetOption(driver, vm, cap, false, job) < 0)
|
|
|
6d3351 |
goto cleanup;
|
|
|
6d3351 |
}
|
|
|
6d3351 |
--
|
|
|
6d3351 |
2.12.2
|
|
|
6d3351 |
|