diff -urN qemu-kvm-0.10.5/migration.c qemu-kvm-0.10.5-flush-aio-on-migration/migration.c --- qemu-kvm-0.10.5/migration.c 2009-05-21 05:05:19.000000000 -0400 +++ qemu-kvm-0.10.5-flush-aio-on-migration/migration.c 2009-07-08 11:53:42.000000000 -0400 @@ -216,6 +216,7 @@ dprintf("done iterating\n"); vm_stop(0); + qemu_aio_flush(); bdrv_flush_all(); if ((qemu_savevm_state_complete(s->file)) < 0) { vm_start();