diff options
author | Peter Xu <peterx@redhat.com> | 2017-06-27 12:10:15 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-06-28 11:18:38 +0200 |
commit | 3df663e575f1876d7f3bc684f80e72fca0703d39 (patch) | |
tree | eb60fd3480e91e3b24ac5ad298fec10a3a992e96 /include | |
parent | 5272298c48eb3a01c41a7822e6303d0a0a05f004 (diff) | |
download | qemu-3df663e575f1876d7f3bc684f80e72fca0703d39.zip qemu-3df663e575f1876d7f3bc684f80e72fca0703d39.tar.gz qemu-3df663e575f1876d7f3bc684f80e72fca0703d39.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/misc.h | 2 | ||||
-rw-r--r-- | include/sysemu/sysemu.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h index 2d36cf5..6ac3307 100644 --- a/include/migration/misc.h +++ b/include/migration/misc.h @@ -55,4 +55,6 @@ bool migration_has_finished(MigrationState *); bool migration_has_failed(MigrationState *); /* ...and after the device transmission */ bool migration_in_postcopy_after_devices(MigrationState *); +void migration_only_migratable_set(void); + #endif diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 9841a52..b213696 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -15,7 +15,6 @@ /* vl.c */ extern const char *bios_name; -extern int only_migratable; extern const char *qemu_name; extern QemuUUID qemu_uuid; extern bool qemu_uuid_set; |