migration/multifd: Register nocomp ops dynamically
authorFabiano Rosas <farosas@suse.de>
Tue, 27 Aug 2024 17:46:02 +0000 (14:46 -0300)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:36 +0000 (16:24 -0300)
commitdc6327d99cc7e2ffcb796ef99071f9a6e5131cf3
treed4c5f80f8be6bb57f444fcb6c6f54896442e2143
parent6f848dac4ac7f2ec7b3436ee1f539cf3a60bf911
migration/multifd: Register nocomp ops dynamically

Prior to moving the ram code into multifd-nocomp.c, change the code to
register the nocomp ops dynamically so we don't need to have the ops
structure defined in multifd.c.

While here, move the ops struct initialization to the end of the file
to make the next diff cleaner.

Reviewed-by: Prasad Pandit <pjp@fedoraproject.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd.c