migration: change has_error to contain errno values

We normally already have an errno value.  When not, abuse EIO.

Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
Juan Quintela
2011-09-21 23:01:54 +02:00
parent af50945081
commit dcd1d224df
6 changed files with 15 additions and 14 deletions

View File

@@ -263,7 +263,7 @@ int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque)
}
if (cpu_physical_sync_dirty_bitmap(0, TARGET_PHYS_ADDR_MAX) != 0) {
qemu_file_set_error(f);
qemu_file_set_error(f, -EINVAL);
return 0;
}