aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-23 06:24:03 +0200
committerJuan Quintela <quintela@redhat.com>2012-12-20 23:09:25 +0100
commit188a428559f0cd0bde884d28b42e449abd744c2f (patch)
tree40ffc738d7b85ed5f1d1617552d06b24f59dfd20 /migration.c
parentdd217b8732b93d97c22fa70dc15a72d92a2b2380 (diff)
downloadqemu-188a428559f0cd0bde884d28b42e449abd744c2f.zip
qemu-188a428559f0cd0bde884d28b42e449abd744c2f.tar.gz
qemu-188a428559f0cd0bde884d28b42e449abd744c2f.tar.bz2
migration: remove unfreeze logic
Now that we have a thread, and blocking writes, we don't need it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/migration.c b/migration.c
index 207c754..032c9c2 100644
--- a/migration.c
+++ b/migration.c
@@ -382,29 +382,6 @@ static void migrate_fd_cancel(MigrationState *s)
migrate_fd_cleanup(s);
}
-int migrate_fd_wait_for_unfreeze(MigrationState *s)
-{
- int ret;
-
- DPRINTF("wait for unfreeze\n");
- if (s->state != MIG_STATE_ACTIVE)
- return -EINVAL;
-
- do {
- fd_set wfds;
-
- FD_ZERO(&wfds);
- FD_SET(s->fd, &wfds);
-
- ret = select(s->fd + 1, NULL, &wfds, NULL, NULL);
- } while (ret == -1 && (s->get_error(s)) == EINTR);
-
- if (ret == -1) {
- return -s->get_error(s);
- }
- return 0;
-}
-
int migrate_fd_close(MigrationState *s)
{
int rc = 0;