migration/multifd: Introduce MultiFDSendData
authorFabiano Rosas <farosas@suse.de>
Tue, 27 Aug 2024 17:45:52 +0000 (14:45 -0300)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:35 +0000 (16:24 -0300)
commitaddd7d15816f2ee65911d30a38357cc2004f22eb
tree882f5aa81ef7c2e65316635b2fa86485e3620235
parent112f7d1b752543de06ae96210a14abbed7913922
migration/multifd: Introduce MultiFDSendData

Add a new data structure to replace p->pages in the multifd
channel. This new structure will hide the multifd payload type behind
an union, so we don't need to add a new field to the channel each time
we want to handle a different data type.

This also allow us to keep multifd_send_pages() as is, without needing
to complicate the pointer switching.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd.h