aboutsummaryrefslogtreecommitdiff
path: root/migration-unix.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-22 17:36:42 +0100
committerJuan Quintela <quintela@redhat.com>2013-03-11 13:32:02 +0100
commite6a1cf21328802f3a83e84e893b8cb8a468141cc (patch)
tree57ca206cbfe0dd6640a9a5f585692016c6182b11 /migration-unix.c
parentf8bbc1286337a8506162b5785babe6f2a7de2476 (diff)
downloadqemu-arm-e6a1cf21328802f3a83e84e893b8cb8a468141cc.tar.gz
migration: use QEMUFile for writing outgoing migration data
Second, drop the file descriptor indirection, and write directly to the QEMUFile. Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration-unix.c')
-rw-r--r--migration-unix.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/migration-unix.c b/migration-unix.c
index 11917f4f2a..64bfa31e35 100644
--- a/migration-unix.c
+++ b/migration-unix.c
@@ -29,16 +29,6 @@
do { } while (0)
#endif
-static int unix_errno(MigrationState *s)
-{
- return errno;
-}
-
-static int unix_write(MigrationState *s, const void * buf, size_t size)
-{
- return write(s->fd, buf, size);
-}
-
static void unix_wait_for_connect(int fd, void *opaque)
{
MigrationState *s = opaque;
@@ -56,8 +46,6 @@ static void unix_wait_for_connect(int fd, void *opaque)
void unix_start_outgoing_migration(MigrationState *s, const char *path, Error **errp)
{
- s->get_error = unix_errno;
- s->write = unix_write;
unix_nonblocking_connect(path, unix_wait_for_connect, s, errp);
}