|
|
a41c76 |
From 614ff7c7faf6ad46bb3b44ff5b57e839b00af4a4 Mon Sep 17 00:00:00 2001
|
|
|
a41c76 |
Message-Id: <614ff7c7faf6ad46bb3b44ff5b57e839b00af4a4@dist-git>
|
|
|
a41c76 |
From: Laine Stump <laine@redhat.com>
|
|
|
a41c76 |
Date: Thu, 30 Jan 2020 14:12:43 -0500
|
|
|
a41c76 |
Subject: [PATCH] qemu: add wait-unplug to qemu migration status enum
|
|
|
a41c76 |
MIME-Version: 1.0
|
|
|
a41c76 |
Content-Type: text/plain; charset=UTF-8
|
|
|
a41c76 |
Content-Transfer-Encoding: 8bit
|
|
|
a41c76 |
|
|
|
a41c76 |
Aside from itinerant error (actually warning) messages due to an
|
|
|
a41c76 |
unrecognized response from qemu, this isn't even necessary - the
|
|
|
a41c76 |
migration proceeds successfully to completion anyway.
|
|
|
a41c76 |
|
|
|
a41c76 |
(I'm not sure where to see this status reported in the API though - do
|
|
|
a41c76 |
we need to add an extra state, or recognition of a new event somewhere?)
|
|
|
a41c76 |
|
|
|
a41c76 |
Signed-off-by: Laine Stump <laine@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a41c76 |
(cherry picked from commit 8a226ddb3602586a2ba2359afc4448c02f566a0e)
|
|
|
a41c76 |
|
|
|
a41c76 |
https://bugzilla.redhat.com/1693587
|
|
|
a41c76 |
Signed-off-by: Laine Stump <laine@redhat.com>
|
|
|
a41c76 |
Message-Id: <20200130191244.24174-6-laine@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a41c76 |
---
|
|
|
a41c76 |
src/qemu/qemu_migration.c | 1 +
|
|
|
a41c76 |
src/qemu/qemu_monitor.c | 1 +
|
|
|
a41c76 |
src/qemu/qemu_monitor.h | 1 +
|
|
|
a41c76 |
src/qemu/qemu_monitor_json.c | 1 +
|
|
|
a41c76 |
4 files changed, 4 insertions(+)
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
|
|
|
a41c76 |
index 46612a3c84..b56ccbdc3c 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_migration.c
|
|
|
a41c76 |
+++ b/src/qemu/qemu_migration.c
|
|
|
a41c76 |
@@ -1457,6 +1457,7 @@ qemuMigrationUpdateJobType(qemuDomainJobInfoPtr jobInfo)
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_SETUP:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_ACTIVE:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_CANCELLING:
|
|
|
a41c76 |
+ case QEMU_MONITOR_MIGRATION_STATUS_WAIT_UNPLUG:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_LAST:
|
|
|
a41c76 |
break;
|
|
|
a41c76 |
}
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
|
|
|
a41c76 |
index ccd20b3740..4f547bf5ec 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_monitor.c
|
|
|
a41c76 |
+++ b/src/qemu/qemu_monitor.c
|
|
|
a41c76 |
@@ -168,6 +168,7 @@ VIR_ENUM_IMPL(qemuMonitorMigrationStatus,
|
|
|
a41c76 |
"device", "postcopy-active",
|
|
|
a41c76 |
"completed", "failed",
|
|
|
a41c76 |
"cancelling", "cancelled",
|
|
|
a41c76 |
+ "wait-unplug",
|
|
|
a41c76 |
);
|
|
|
a41c76 |
|
|
|
a41c76 |
VIR_ENUM_IMPL(qemuMonitorVMStatus,
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
|
|
|
a41c76 |
index 3f3b81cddd..cca2cdcb27 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_monitor.h
|
|
|
a41c76 |
+++ b/src/qemu/qemu_monitor.h
|
|
|
a41c76 |
@@ -767,6 +767,7 @@ typedef enum {
|
|
|
a41c76 |
QEMU_MONITOR_MIGRATION_STATUS_ERROR,
|
|
|
a41c76 |
QEMU_MONITOR_MIGRATION_STATUS_CANCELLING,
|
|
|
a41c76 |
QEMU_MONITOR_MIGRATION_STATUS_CANCELLED,
|
|
|
a41c76 |
+ QEMU_MONITOR_MIGRATION_STATUS_WAIT_UNPLUG,
|
|
|
a41c76 |
|
|
|
a41c76 |
QEMU_MONITOR_MIGRATION_STATUS_LAST
|
|
|
a41c76 |
} qemuMonitorMigrationStatus;
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
|
|
|
a41c76 |
index e5164d218a..5d8c7e9b5e 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_monitor_json.c
|
|
|
a41c76 |
+++ b/src/qemu/qemu_monitor_json.c
|
|
|
a41c76 |
@@ -3515,6 +3515,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValuePtr reply,
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_INACTIVE:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_SETUP:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_CANCELLED:
|
|
|
a41c76 |
+ case QEMU_MONITOR_MIGRATION_STATUS_WAIT_UNPLUG:
|
|
|
a41c76 |
case QEMU_MONITOR_MIGRATION_STATUS_LAST:
|
|
|
a41c76 |
break;
|
|
|
a41c76 |
|
|
|
a41c76 |
--
|
|
|
a41c76 |
2.25.0
|
|
|
a41c76 |
|