[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/49] migration: Fix rate limit
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 03/49] migration: Fix rate limit |
Date: |
Mon, 13 Jan 2014 18:39:48 +0100 |
From: Matthew Garrett <address@hidden>
The migration thread appears to want to allow writeout to occur at full
speed rather than being rate limited during completion of state saving,
but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes
problems if there's more than 2GB of state left to save at this point. It
probably ought to just be INT64_MAX instead.
Signed-off-by: Matthew Garrett <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
migration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration.c b/migration.c
index 4ee341b..e5f6b98 100644
--- a/migration.c
+++ b/migration.c
@@ -596,7 +596,7 @@ static void *migration_thread(void *opaque)
ret = vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
if (ret >= 0) {
- qemu_file_set_rate_limit(s->file, INT_MAX);
+ qemu_file_set_rate_limit(s->file, INT64_MAX);
qemu_savevm_state_complete(s->file);
}
qemu_mutex_unlock_iothread();
--
1.8.4.2
- [Qemu-devel] [PULL 00/49] migration queue, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 01/49] avoid a bogus COMPLETED->CANCELLED transition, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 02/49] introduce MIG_STATE_CANCELLING state, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 03/49] migration: Fix rate limit,
Juan Quintela <=
- [Qemu-devel] [PATCH 05/49] migration: Move QEMU_VM_* defines to migration/migration.h, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 04/49] qemu-file: Make a few functions non-static, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 06/49] savevm: Convert all tabs to spaces, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 08/49] savevm.c: Coding style fix, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 07/49] savevm.c: Coding style fixes, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 11/49] savevm: Small comment about why timer QEMUFile/VMState code is in savevm.c, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 12/49] tests: Some unit tests for vmstate.c, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 10/49] qemu-file: Move QEMUFile code to qemu-file.c, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 09/49] vmstate: Move VMState code to vmstate.c, Juan Quintela, 2014/01/13
- [Qemu-devel] [PATCH 13/49] bitmap: use long as index, Juan Quintela, 2014/01/13