[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] migration: fix handling for --only-migratab
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] migration: fix handling for --only-migratable |
Date: |
Mon, 03 Jul 2017 13:32:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Peter Xu <address@hidden> wrote:
> MigrateState object is not ready at that time, so we'll get an
> assertion. Use qemu_global_option() instead.
>
> Reported-by: Eduardo Habkost <address@hidden>
> Suggested-by: Eduardo Habkost <address@hidden>
> Fixes: 3df663e ("migration: move only_migratable to MigrationState")
> Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
> bool migration_in_postcopy_after_devices(MigrationState *);
> -void migration_only_migratable_set(void);
> void migration_global_dump(Monitor *mon);
Nice, one less exported function.
> - migration_only_migratable_set();
> + qemu_global_option("migration.only-migratable=true");
> break;
> case QEMU_OPTION_nodefaults:
> has_defaults = 0;
aha, that is a much, much nicer way to set functions.
Later, Juan.