aboutsummaryrefslogtreecommitdiff
path: root/migration/block.h
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2017-09-26 12:33:16 +0200
committerDr. David Alan Gilbert <dgilbert@redhat.com>2017-09-27 11:27:14 +0100
commit9ac78b6171bec47083a9b6ce88dc1f114caea2f9 (patch)
tree5a7329bb5f0bd8c1f1fa9a02a960326dd992b44e /migration/block.h
parent31bc1d8481af414cfa2857f905e40f7d8e6d5b2e (diff)
migration: disable auto-converge during bulk block migration
auto-converge and block migration currently do not play well together. During block migration the auto-converge logic detects that ram migration makes no progress and thus throttles down the vm until it nearly stalls completely. Avoid this by disabling the throttling logic during the bulk phase of the block migration. Cc: qemu-stable@nongnu.org Signed-off-by: Peter Lieven <pl@kamp.de> Message-Id: <1506421996-12513-1-git-send-email-pl@kamp.de> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/block.h')
-rw-r--r--migration/block.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/block.h b/migration/block.h
index 22ebe94259..3178609dbd 100644
--- a/migration/block.h
+++ b/migration/block.h
@@ -16,6 +16,7 @@
#ifdef CONFIG_LIVE_BLOCK_MIGRATION
int blk_mig_active(void);
+int blk_mig_bulk_active(void);
uint64_t blk_mig_bytes_transferred(void);
uint64_t blk_mig_bytes_remaining(void);
uint64_t blk_mig_bytes_total(void);
@@ -25,6 +26,12 @@ static inline int blk_mig_active(void)
{
return false;
}
+
+static inline int blk_mig_bulk_active(void)
+{
+ return false;
+}
+
static inline uint64_t blk_mig_bytes_transferred(void)
{
return 0;