diff options
author | Glauber Costa <glommer@redhat.com> | 2009-07-06 09:32:09 -0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-10 17:26:09 -0500 |
commit | aae9547639f0b6c3090f759d7a1653c583ff7da7 (patch) | |
tree | bdb5ade9dbccfda4ae64476c8f49b6feead40780 | |
parent | 2872b8a445ad666b471d5dd1583ab4e51e962205 (diff) | |
download | qemu-aae9547639f0b6c3090f759d7a1653c583ff7da7.tar.gz |
flush pending aio requests
When we finish migration, there may be pending async io requests
in flight. If we don't flush it before stage3 starting, it might be
the case that the guest loses it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | migration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration.c b/migration.c index 61c92fe5ff..86ebbf0a2c 100644 --- a/migration.c +++ b/migration.c @@ -218,6 +218,7 @@ void migrate_fd_put_ready(void *opaque) dprintf("done iterating\n"); vm_stop(0); + qemu_aio_flush(); bdrv_flush_all(); if ((qemu_savevm_state_complete(s->file)) < 0) { if (old_vm_running) { |