diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:17 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:01 +0100 |
commit | dba433c03a0f5dc22a459435dd89557886298921 (patch) | |
tree | 7311d20dd8d7b3cc767486023df055d8f5ab69a9 /include/migration | |
parent | 63dfbd7ee03185c181a0791958ec9c8337089b55 (diff) |
migration: simplify error handling
Always use qemu_file_get_error to detect errors, since that is how
QEMUFile itself drops I/O after an error occurs. There is no need
to propagate and check return values all the time.
Also remove the "complete" member, since we know that it is set (via
migrate_fd_cleanup) only when the state changes.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/migration.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index d1214097fe..3e680af7f6 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -54,7 +54,6 @@ struct MigrationState int64_t dirty_bytes_rate; bool enabled_capabilities[MIGRATION_CAPABILITY_MAX]; int64_t xbzrle_cache_size; - bool complete; }; void process_incoming_migration(QEMUFile *f); |