|
|
9bac43 |
From e6f62c7eb81f164ad5aef99a4f7ff48200928938 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
9bac43 |
Date: Wed, 22 Nov 2017 15:41:32 +0100
|
|
|
9bac43 |
Subject: [PATCH 2/7] migration: Reenable incoming live-block-migration
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
9bac43 |
Message-id: <20171122154132.15363-1-dgilbert@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77779
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 1/1] migration: Reenable incoming live-block-migration
|
|
|
9bac43 |
Bugzilla: 1515173
|
|
|
9bac43 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Juan Quintela <quintela@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
rhel7 has always disabled outgoing old-style live block migration
|
|
|
9bac43 |
(but in -rhev enabled nbd block migration); however it allows
|
|
|
9bac43 |
incoming old-style live block migration to allow reception of a stream
|
|
|
9bac43 |
from rhel6.
|
|
|
9bac43 |
|
|
|
9bac43 |
I added --disable-live-block-migration to upstream in ed1701c6a5a,
|
|
|
9bac43 |
however that really did disable it completely.
|
|
|
9bac43 |
|
|
|
9bac43 |
In the 7.5 world we've inherited the upstream version and lost the
|
|
|
9bac43 |
incoming support.
|
|
|
9bac43 |
|
|
|
9bac43 |
Reenable incoming support even when outgoing is disabled.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
include/migration/misc.h | 7 +++----
|
|
|
9bac43 |
migration/Makefile.objs | 2 +-
|
|
|
9bac43 |
migration/block.h | 6 +++++-
|
|
|
9bac43 |
3 files changed, 9 insertions(+), 6 deletions(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/include/migration/misc.h b/include/migration/misc.h
|
|
|
9bac43 |
index c079b77..1d060df 100644
|
|
|
9bac43 |
--- a/include/migration/misc.h
|
|
|
9bac43 |
+++ b/include/migration/misc.h
|
|
|
9bac43 |
@@ -22,11 +22,10 @@ void ram_mig_init(void);
|
|
|
9bac43 |
|
|
|
9bac43 |
/* migration/block.c */
|
|
|
9bac43 |
|
|
|
9bac43 |
-#ifdef CONFIG_LIVE_BLOCK_MIGRATION
|
|
|
9bac43 |
+/* RHEL7 allows incoming block migration even with
|
|
|
9bac43 |
+ * --disable-live-block-migration to allow RHEL6->7 migration.
|
|
|
9bac43 |
+ */
|
|
|
9bac43 |
void blk_mig_init(void);
|
|
|
9bac43 |
-#else
|
|
|
9bac43 |
-static inline void blk_mig_init(void) {}
|
|
|
9bac43 |
-#endif
|
|
|
9bac43 |
|
|
|
9bac43 |
#define SELF_ANNOUNCE_ROUNDS 5
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/migration/Makefile.objs b/migration/Makefile.objs
|
|
|
9bac43 |
index 1c7770d..4277c88 100644
|
|
|
9bac43 |
--- a/migration/Makefile.objs
|
|
|
9bac43 |
+++ b/migration/Makefile.objs
|
|
|
9bac43 |
@@ -9,5 +9,5 @@ common-obj-y += qjson.o
|
|
|
9bac43 |
|
|
|
9bac43 |
common-obj-$(CONFIG_RDMA) += rdma.o
|
|
|
9bac43 |
|
|
|
9bac43 |
-common-obj-$(CONFIG_LIVE_BLOCK_MIGRATION) += block.o
|
|
|
9bac43 |
+common-obj-y += block.o
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/migration/block.h b/migration/block.h
|
|
|
9bac43 |
index 22ebe94..c4ab848 100644
|
|
|
9bac43 |
--- a/migration/block.h
|
|
|
9bac43 |
+++ b/migration/block.h
|
|
|
9bac43 |
@@ -14,7 +14,11 @@
|
|
|
9bac43 |
#ifndef MIGRATION_BLOCK_H
|
|
|
9bac43 |
#define MIGRATION_BLOCK_H
|
|
|
9bac43 |
|
|
|
9bac43 |
-#ifdef CONFIG_LIVE_BLOCK_MIGRATION
|
|
|
9bac43 |
+/* RHEL7: live block migration is still compiled in even
|
|
|
9bac43 |
+ * with --disable-live-block-migration since we must
|
|
|
9bac43 |
+ * allow inbound migration from RHEL6.
|
|
|
9bac43 |
+ */
|
|
|
9bac43 |
+#if 1 /* CONFIG_LIVE_BLOCK_MIGRATION */
|
|
|
9bac43 |
int blk_mig_active(void);
|
|
|
9bac43 |
uint64_t blk_mig_bytes_transferred(void);
|
|
|
9bac43 |
uint64_t blk_mig_bytes_remaining(void);
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|