]> git.proxmox.com Git - mirror_qemu.git/commit
savevm: Fix no_migrate
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 11 Jan 2011 21:39:43 +0000 (14:39 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 17 Jan 2011 16:22:17 +0000 (18:22 +0200)
commitdc9121210eaf34e768901ffc6992dd13062c743a
treeb301ef9f52367cc37aa29d739e78b00be005865f
parent668643b025dcff72b9b18adb5df794be9e9be5dc
savevm: Fix no_migrate

The no_migrate save state flag is currently only checked in the
last phase of migration.  This means that we potentially waste
a lot of time and bandwidth with the live state handlers before
we ever check the no_migrate flags.  The error message printed
when we catch a non-migratable device doesn't get printed for
a detached migration.  And, no_migrate does nothing to prevent
an incoming migration to a target that includes a non-migratable
device.  This attempts to fix all of these.

One notable difference in behavior is that an outgoing migration
now checks for non-migratable devices before ever connecting to
the target system.  This means the target will remain listening
rather than exit from failure.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
migration.c
savevm.c
sysemu.h