From: Marcelo Tosatti <[email protected]>

Re-enter the kernel to complete in progress PIO. Otherwise the
operation can be lost during migration.

Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>

diff --git a/qemu-kvm.c b/qemu-kvm.c
index b534d4e..2cefb73 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -976,6 +976,7 @@ int kvm_run(CPUState *env)
                                 run->io.direction,
                                 run->io.size,
                                 run->io.count);
+            r = 0;
             break;
         case KVM_EXIT_DEBUG:
             r = handle_debug(env);
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to