qemu-irix/migration
Peter Xu 7287cbd46e migration: move vm_old_running into global state
Firstly, it was passed around.  Let's just move it into MigrationState
just like many other variables as state of migration, renaming it to
vm_was_running.

One thing to mention is that for postcopy, we actually don't need this
knowledge at all since postcopy can't resume a VM even if it fails (we
can see that from the old code too: when we try to resume we also check
against "entered_postcopy" variable).  So further we do this:

- in postcopy_start(), we don't update vm_old_running since useless
- in migration_thread(), we don't need to check entered_postcopy when
  resume, since it's only used for precopy.

Comment this out too for that variable definition.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2018-01-15 12:48:08 +01:00
..
Makefile.objs buildsys: Move rdma libs to per object 2017-09-22 10:20:34 +08:00
block.c Remove empty statements 2017-12-18 17:07:02 +03:00
block.h migration: disable auto-converge during bulk block migration 2017-09-27 11:27:14 +01:00
channel.c migration: Add comments to channel functions 2017-09-22 14:11:18 +02:00
channel.h
colo-comm.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
colo-failover.c qapi: Mechanically convert FOO_lookup[...] to FOO_str(...) 2017-09-04 13:09:13 +02:00
colo.c qapi: Mechanically convert FOO_lookup[...] to FOO_str(...) 2017-09-04 13:09:13 +02:00
exec.c migration: Teach it about G_SOURCE_REMOVE 2017-09-22 14:11:18 +02:00
exec.h
fd.c migration: Teach it about G_SOURCE_REMOVE 2017-09-22 14:11:18 +02:00
fd.h
global_state.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
migration.c migration: move vm_old_running into global state 2018-01-15 12:48:08 +01:00
migration.h migration: move vm_old_running into global state 2018-01-15 12:48:08 +01:00
page_cache.c migration: Make sure that we pass the right cache size 2017-10-29 14:06:15 +01:00
page_cache.h migration: Make cache_init() take an error parameter 2017-10-23 18:03:25 +02:00
postcopy-ram.c migration: add postcopy total blocktime into query-migrate 2018-01-15 12:48:04 +01:00
postcopy-ram.h migration: postcopy_place_page factoring out 2017-10-23 18:03:39 +02:00
qemu-file-channel.c
qemu-file-channel.h
qemu-file.c
qemu-file.h
qjson.c
qjson.h
ram.c migration: Guard ram_bytes_remaining against early call 2018-01-15 12:48:04 +01:00
ram.h migration: No need to return the size of the cache 2017-10-29 14:06:15 +01:00
rdma.c
rdma.h
savevm.c migration, xen: Fix block image lock issue on live migration 2017-11-21 19:42:26 +01:00
savevm.h
socket.c migration: free addr in the same function that we created it 2018-01-15 12:47:55 +01:00
socket.h
tls.c migration: Improve migration thread error handling 2017-10-23 18:03:43 +02:00
tls.h
trace-events migration: add postcopy total blocktime into query-migrate 2018-01-15 12:48:04 +01:00
vmstate-types.c migration: Route more error paths 2017-09-27 11:44:18 +01:00
vmstate.c migration: wire vmstate_save_state errors up to vmstate_subsection_save 2017-09-27 11:38:21 +01:00
xbzrle.c
xbzrle.h