diff options
| author | Peter Lieven <pl@kamp.de> | 2014-06-10 11:29:16 +0200 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2014-06-16 04:55:27 +0200 |
| commit | db80facefa62dff42bb50c73b0f03eda5f732b49 (patch) | |
| tree | 3861bb55883487e6d57385ee750d675c6e37c27e /migration.c | |
| parent | 2a9343470432573acf06379bcbf8e5e6568507e4 (diff) | |
| download | focaccia-qemu-db80facefa62dff42bb50c73b0f03eda5f732b49.tar.gz focaccia-qemu-db80facefa62dff42bb50c73b0f03eda5f732b49.zip | |
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>
Diffstat (limited to 'migration.c')
| -rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 873fa96e54..8d675b31a1 100644 --- a/migration.c +++ b/migration.c @@ -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(); |