mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
migration: replace qemu_stdio_fd with qemu_get_fd
Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
70eb633034
commit
d263a20bcf
4 changed files with 3 additions and 15 deletions
|
@ -88,7 +88,7 @@ static void exec_accept_incoming_migration(void *opaque)
|
|||
QEMUFile *f = opaque;
|
||||
|
||||
process_incoming_migration(f);
|
||||
qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
|
||||
qemu_set_fd_handler2(qemu_get_fd(f), NULL, NULL, NULL, NULL);
|
||||
qemu_fclose(f);
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,6 @@ void exec_start_incoming_migration(const char *command, Error **errp)
|
|||
return;
|
||||
}
|
||||
|
||||
qemu_set_fd_handler2(qemu_stdio_fd(f), NULL,
|
||||
qemu_set_fd_handler2(qemu_get_fd(f), NULL,
|
||||
exec_accept_incoming_migration, NULL, f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue