]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: refactor channel discovery mechanism
authorPrasad Pandit <pjp@fedoraproject.org>
Fri, 11 Apr 2025 11:45:29 +0000 (17:15 +0530)
committerPeter Xu <peterx@redhat.com>
Fri, 2 May 2025 15:09:36 +0000 (11:09 -0400)
commit00f3fcef1981eb23f98b956d9cda2df528bfef40
treee63b75e741055a13e601dce60a4978c90280ec5c
parent56e3c89f44ecebc946fbe4ffed325d1a79b26e38
migration: refactor channel discovery mechanism

The various logical migration channels don't have a
standardized way of advertising themselves and their
connections may be seen out of order by the migration
destination. When a new connection arrives, the incoming
migration currently make use of heuristics to determine
which channel it belongs to.

The next few patches will need to change how the multifd
and postcopy capabilities interact and that affects the
channel discovery heuristic.

Refactor the channel discovery heuristic to make it less
opaque and simplify the subsequent patches.

Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250411114534.3370816-3-ppandit@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/migration.c