diff options
author | Jiri Denemark <jdenemar@redhat.com> | 2017-10-20 10:11:32 +0200 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2017-10-26 10:36:02 +0200 |
commit | 6addde24bee54f2502a942b6cc4a5e61f5e6ba4a (patch) | |
tree | befaad9566803b8359f4054d4d430609a47cf089 /src/qemu/qemu_monitor_json.c | |
parent | b5ec33b832d8e3703cddc6598314de24344999c3 (diff) | |
download | libvirt-6addde24bee54f2502a942b6cc4a5e61f5e6ba4a.tar.gz |
qemu: Add pause-before-switchover migration capability
This new capability enables a pause before device state serialization so
that we can finish all block jobs without racing with the end of the
migration. The pause is indicated by "pre-switchover" state. Once we're
done QEMU enters "device" migration state.
This patch just defines the new capability and QEMU migration states and
their mapping to our job states.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Diffstat (limited to 'src/qemu/qemu_monitor_json.c')
-rw-r--r-- | src/qemu/qemu_monitor_json.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index def80882c4..05cc634d20 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -2846,6 +2846,8 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValuePtr reply, case QEMU_MONITOR_MIGRATION_STATUS_POSTCOPY: case QEMU_MONITOR_MIGRATION_STATUS_COMPLETED: case QEMU_MONITOR_MIGRATION_STATUS_CANCELLING: + case QEMU_MONITOR_MIGRATION_STATUS_PRE_SWITCHOVER: + case QEMU_MONITOR_MIGRATION_STATUS_DEVICE: ram = virJSONValueObjectGetObject(ret, "ram"); if (!ram) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", |