Rework loadvm path for subloops
commit7b89bf279f16c093ed46845b8e6e0fb61b7ef639
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 5 Nov 2015 18:10:50 +0000 (5 18:10 +0000)
committerJuan Quintela <quintela@redhat.com>
Tue, 10 Nov 2015 14:00:26 +0000 (10 15:00 +0100)
treee51d8fa0e0ed277cca19eccacee4cffa26c38899
parent70b2047774231ba2cb672eb936e12f603fa644aa
Rework loadvm path for subloops

Postcopy needs to have two migration streams loading concurrently;
one from memory (with the device state) and the other from the fd
with the memory transactions.

Split the core of qemu_loadvm_state out so we can use it for both.

Allow the inner loadvm loop to quit and cause the parent loops to
exit as well.

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