From: Glauber Costa Date: Mon, 6 Jul 2009 13:32:09 +0000 (-0400) Subject: flush pending aio requests X-Git-Tag: v0.10.6~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aae9547639f0b6c3090f759d7a1653c583ff7da7;p=thirdparty%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/migration.c b/migration.c index 61c92fe5ff8..86ebbf0a2cd 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) {