mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 07:04:52 +00:00
migration: don't "write" when migration is not active
If migration is not active, just ignore writes. Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
eff28a5c3b
commit
fdbecb5d0e
@ -323,6 +323,10 @@ ssize_t migrate_fd_put_buffer(void *opaque, const void *data, size_t size)
|
|||||||
FdMigrationState *s = opaque;
|
FdMigrationState *s = opaque;
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
|
if (s->state != MIG_STATE_ACTIVE) {
|
||||||
|
return -EIO;
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
ret = s->write(s, data, size);
|
ret = s->write(s, data, size);
|
||||||
} while (ret == -1 && ((s->get_error(s)) == EINTR));
|
} while (ret == -1 && ((s->get_error(s)) == EINTR));
|
||||||
|
Loading…
Reference in New Issue
Block a user