mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
migration: Remove use of old MigrationParams
We have change in the previous patch to use migration capabilities for it. Notice that we continue using the old command line flags from migrate command from the time being. Remove the set_params method as now it is empty. For savevm, one can't do a: savevm -b/-i foo but now one can do: migrate_set_capability block on savevm foo And we can't use block migration. We could disable block capability unconditionally, but it would not be much better. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> --- - Maintain shared/enabled dependency (Xu suggestion) - Now we maintain the dependency on the setter functions - improve error messages
This commit is contained in:
parent
2833c59b94
commit
ce7c817c85
5 changed files with 11 additions and 24 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "qemu/timer.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "migration/colo.h"
|
||||
#include "migration/block.h"
|
||||
#include "io/channel-buffer.h"
|
||||
#include "trace.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
@ -345,8 +346,7 @@ static int colo_do_checkpoint_transaction(MigrationState *s,
|
|||
}
|
||||
|
||||
/* Disable block migration */
|
||||
s->params.blk = 0;
|
||||
s->params.shared = 0;
|
||||
migrate_set_block_enabled(false, &local_err);
|
||||
qemu_savevm_state_header(fb);
|
||||
qemu_savevm_state_begin(fb, &s->params);
|
||||
qemu_mutex_lock_iothread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue