« Previous | Next » 

Revision dba433c0

IDdba433c03a0f5dc22a459435dd89557886298921

Added by Paolo Bonzini about 11 years ago

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 <>
Reviewed-by: Juan Quintela <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Juan Quintela <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences