Hi,
In this v3:
patch 1 - The fd_is_socket() verification and an update to the comment
in the code;
patch 2 - The fix for the fd-reuse bug in outgoing_args;
patch 3 - A proposal on how to fix the fd-socket vs. fd-file
issue. I'm basically moving the fd_is_socket() call earlier
to be able to do the checks properly.
based-on: https://gitlab.com/peterx/qemu/-/commits/migration-stable
CI run: https://gitlab.com/farosas/qemu/-/pipelines/1214405210
Fabiano Rosas (3):
migration/multifd: Ensure we're not given a socket for file migration
migration/multifd: Duplicate the fd for the outgoing_args
migration: Add fd to FileMigrationArgs
migration/fd.c | 20 ++++++---
migration/file.c | 9 ++++
migration/migration.c | 100 ++++++++++++++++++++++++++++++++++++------
migration/migration.h | 1 +
qapi/migration.json | 11 ++++-
5 files changed, 119 insertions(+), 22 deletions(-)
--
2.35.3