From 3df663e575f1876d7f3bc684f80e72fca0703d39 Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Tue, 27 Jun 2017 12:10:15 +0800 Subject: 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 Signed-off-by: Peter Xu Message-Id: <1498536619-14548-7-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela --- include/migration/misc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/migration') diff --git a/include/migration/misc.h b/include/migration/misc.h index 2d36cf5358..6ac3307529 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 -- cgit v1.2.3-55-g7522