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