]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: create new section to store global state
authorJuan Quintela <quintela@redhat.com>
Wed, 8 Oct 2014 08:58:10 +0000 (10:58 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:51 +0000 (14:54 +0200)
commitdf4b1024526cae3479da3492d6371fd4a7324a03
tree33e8d1dcc68938b281264a62bffc9775151d0102
parentca3fc39ea9045188e37b84c4f92ee79c7ed4b1c3
migration: create new section to store global state

This includes a new section that for now just stores the current qemu state.

Right now, there are only one way to control what is the state of the
target after migration.

- If you run the target qemu with -S, it would start stopped.
- If you run the target qemu without -S, it would run just after migration finishes.

The problem here is what happens if we start the target without -S and
there happens one error during migration that puts current state as
-EIO.  Migration would ends (notice that the error happend doing block
IO, network IO, i.e. nothing related with migration), and when
migration finish, we would just "continue" running on destination,
probably hanging the guest/corruption data, whatever.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/migration.h
migration/migration.c
trace-events
vl.c