migration/multifd: Replace p->pages with an union pointer
authorFabiano Rosas <farosas@suse.de>
Tue, 27 Aug 2024 17:45:54 +0000 (14:45 -0300)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:35 +0000 (16:24 -0300)
commit9f0e10890109601f375b687736b65e8fac734b55
tree67c71911d2512d57939f23af2fcc8288e3051fa0
parent0e427da096d46860c2a5755295d1e05647e90154
migration/multifd: Replace p->pages with an union pointer

We want multifd to be able to handle more types of data than just ram
pages. To start decoupling multifd from pages, replace p->pages
(MultiFDPages_t) with the new type MultiFDSendData that hides the
client payload inside an union.

The general idea here is to isolate functions that *need* to handle
MultiFDPages_t and move them in the future to multifd-ram.c, while
multifd.c will stay with only the core functions that handle
MultiFDSendData/MultiFDRecvData.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd-qpl.c
migration/multifd-uadk.c
migration/multifd-zero-page.c
migration/multifd-zlib.c
migration/multifd-zstd.c
migration/multifd.c
migration/multifd.h