migration/multifd: Move nocomp code into multifd-nocomp.c
authorFabiano Rosas <farosas@suse.de>
Tue, 27 Aug 2024 17:46:03 +0000 (14:46 -0300)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:36 +0000 (16:24 -0300)
commit40c9471e402c3262b3d7ad8c79175a1a226dcf7b
treeb5b372559c667284dd338830d33269ea74b86f89
parentdc6327d99cc7e2ffcb796ef99071f9a6e5131cf3
migration/multifd: Move nocomp code into multifd-nocomp.c

In preparation for adding new payload types to multifd, move most of
the no-compression code into multifd-nocomp.c. Let's try to keep a
semblance of layering by not mixing general multifd control flow with
the details of transmitting pages of ram.

There are still some pieces leftover, namely the p->normal, p->zero,
etc variables that we use for zero page tracking and the packet
allocation which is heavily dependent on the ram code.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/meson.build
migration/multifd-nocomp.c [new file with mode: 0644]
migration/multifd.c
migration/multifd.h