]> git.proxmox.com Git - mirror_qemu.git/commit
migration: move only_migratable to MigrationState
authorPeter Xu <peterx@redhat.com>
Tue, 27 Jun 2017 04:10:15 +0000 (12:10 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 28 Jun 2017 09:18:38 +0000 (11:18 +0200)
commit3df663e575f1876d7f3bc684f80e72fca0703d39
treeeb60fd3480e91e3b24ac5ad298fec10a3a992e96
parent5272298c48eb3a01c41a7822e6303d0a0a05f004
migration: move only_migratable to MigrationState

One less global variable, and it does only matter with migration.

We keep the old "--only-migratable" option, but also now we support:

  -global migration.only-migratable=true

Currently still keep the old interface.

Hmm, now vl.c has no way to access migrate_get_current(). Export a
function for it to setup only_migratable.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1498536619-14548-7-git-send-email-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/misc.h
include/sysemu/sysemu.h
migration/migration.c
migration/migration.h
migration/savevm.c
vl.c