MIG_CMD_PACKAGED: Send a packaged chunk of migration stream
commit11cf1d984b86b294972cd25df6286e5b2e98735d
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 5 Nov 2015 18:10:53 +0000 (5 18:10 +0000)
committerJuan Quintela <quintela@redhat.com>
Tue, 10 Nov 2015 14:00:26 +0000 (10 15:00 +0100)
treef3b78d7444a7745bb2b756a8d9bb2f6c71015df6
parent093e3c429693f87fb917424c637ad8f599bd9e67
MIG_CMD_PACKAGED: Send a packaged chunk of migration stream

MIG_CMD_PACKAGED is a migration command that wraps a chunk of migration
stream inside a package whose length can be determined purely by reading
its header.  The destination guarantees that the whole MIG_CMD_PACKAGED
is read off the stream prior to parsing the contents.

This is used by postcopy to load device state (from the package)
while leaving the main stream free to receive memory pages.

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