qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/7] migration: add error handling to migrate_fd


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 5/7] migration: add error handling to migrate_fd_put_notify().
Date: Tue, 20 Sep 2011 17:49:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 09/20/2011 03:24 PM, Juan Quintela wrote:

diff --git a/migration.c b/migration.c
index c56d29c..7f8928a 100644
--- a/migration.c
+++ b/migration.c
@@ -312,6 +312,9 @@ void migrate_fd_put_notify(void *opaque)

      qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
      qemu_file_put_notify(s->file);
+    if (qemu_file_has_error(s->file)) {
+        migrate_fd_error(s);
+    }

Note this is testing QEMUFile's has_error, not QEMUBufferedFile's. Merging the two flags would be a good idea.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]