live migration: Serialize vmstate saving in stage 2
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 1 Dec 2009 14:19:55 +0000 (15:19 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 17:45:49 +0000 (11:45 -0600)
commita043af871f4936e4acf812db0f6f8f713106bdcf
tree02597ef53db6b6c20423e379e5ab125941bdbb8a
parent50887790d462531acd885e403fcf7a1bf0107c7d
live migration: Serialize vmstate saving in stage 2

The effect of this patch with current block migration is that its stage
2, ie. the first full walk-through of the block devices will be
performed completely before RAM migration starts. This ensures that
continuously changing RAM pages are not re-synchronized all the time
while block migration is not completed.

Future versions of block migration which will respect the specified
downtime will generate a different pattern: After RAM migration has
started as well, block migration may also continue to inject dirty
blocks into the RAM stream once it detects that the number of pending
blocks would extend the downtime unacceptably.

Note that all this relies on the current registration order: block
before RAM migration.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
savevm.c