mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
migration: catch unknown flags in ram_load
if a saved vm has unknown flags in the memory data qemu
currently simply ignores this flag and continues which
yields in an unpredictable result.
This patch catches all unknown flags and aborts the
loading of the vm. Additionally error reports are thrown
if the migration aborts abnormally.
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit db80facefa
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Roth
parent
86cfc10440
commit
6ea6bd5d75
@ -98,7 +98,7 @@ static void process_incoming_migration_co(void *opaque)
|
||||
qemu_fclose(f);
|
||||
free_xbzrle_decoded_buf();
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "load of migration failed\n");
|
||||
error_report("load of migration failed: %s", strerror(-ret));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
qemu_announce_self();
|
||||
|
Reference in New Issue
Block a user