mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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:
parent
af50945081
commit
dcd1d224df
6 changed files with 15 additions and 14 deletions
2
hw/hw.h
2
hw/hw.h
|
@ -86,7 +86,7 @@ int qemu_file_rate_limit(QEMUFile *f);
|
|||
int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
|
||||
int64_t qemu_file_get_rate_limit(QEMUFile *f);
|
||||
int qemu_file_has_error(QEMUFile *f);
|
||||
void qemu_file_set_error(QEMUFile *f);
|
||||
void qemu_file_set_error(QEMUFile *f, int error);
|
||||
|
||||
/* Try to send any outstanding data. This function is useful when output is
|
||||
* halted due to rate limiting or EAGAIN errors occur as it can be used to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue