mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
migration/multifd: Add incoming QIOChannelFile support
On the receiving side we don't need to differentiate between main channel and threads, so whichever channel is defined first gets to be the main one. And since there are no packets, use the atomic channel count to index into the params array. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20240229153017.2221-19-farosas@suse.de Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
b7b03eb614
commit
2dd7ee7a51
3 changed files with 30 additions and 11 deletions
|
@ -1545,8 +1545,7 @@ void multifd_recv_new_channel(QIOChannel *ioc, Error **errp)
|
|||
}
|
||||
trace_multifd_recv_new_channel(id);
|
||||
} else {
|
||||
/* next patch gives this a meaningful value */
|
||||
id = 0;
|
||||
id = qatomic_read(&multifd_recv_state->count);
|
||||
}
|
||||
|
||||
p = &multifd_recv_state->params[id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue