[Top][All Lists]

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

[Qemu-devel] [PATCH v1 06/22] migration: force QEMUFile to blocking mode

From: Daniel P. Berrange
Subject: [Qemu-devel] [PATCH v1 06/22] migration: force QEMUFile to blocking mode for outgoing migration
Date: Tue, 12 Jan 2016 11:44:00 +0000

Instead of relying on the default QEMUFile I/O blocking flag
state, explicitly turn on blocking I/O for outgoing migration
since it takes place in a background thread.

Signed-off-by: Daniel P. Berrange <address@hidden>
 migration/migration.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration/migration.c b/migration/migration.c
index c964a8d..715f069 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -1732,6 +1732,7 @@ void migrate_fd_connect(MigrationState *s)
     s->expected_downtime = max_downtime/1000000;
     s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);
+    qemu_file_set_blocking(s->file, true);
                              s->bandwidth_limit / XFER_LIMIT_RATIO);

reply via email to

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