]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl: move global property, migrate init earlier
authorPeter Xu <peterx@redhat.com>
Wed, 5 Jul 2017 08:21:21 +0000 (16:21 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 10 Jul 2017 16:52:21 +0000 (17:52 +0100)
commit00b8ea4e34bf474ae55fc2fcb4ec12c0841d07e0
treec017aff37114ddbddb7d1fb41fc31c8cdc7e360e
parentb605c47b57b58e61a901a50a0762dccf43d94783
vl: move global property, migrate init earlier

Currently drive_init_func() may call migrate_get_current() while the
migrate object is still not ready yet at that time. Move the migration
object init earlier, along with the global properties, right after
acceleration init.

This fixes a breakage for iotest 055, which caused an assertion failure.

Reported-by: Max Reitz <mreitz@redhat.com>
Reported-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Fixes: 3df663 ("migration: move only_migratable to MigrationState")
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1499242883-2184-3-git-send-email-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
vl.c