vfio/migration: Multifd setup/cleanup functions and associated VFIOMultifd
Add multifd setup/cleanup functions and an associated VFIOMultifd data structure that will contain most of the receive-side data together with its init/cleanup methods. Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/c0520523053b1087787152ddf2163257d3030be0.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
2efa35d34e
commit
ff2fd1f7e2
3 changed files with 51 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ typedef struct VFIORegion {
|
|||
uint8_t nr; /* cache the region number for debug */
|
||||
} VFIORegion;
|
||||
|
||||
typedef struct VFIOMultifd VFIOMultifd;
|
||||
|
||||
typedef struct VFIOMigration {
|
||||
struct VFIODevice *vbasedev;
|
||||
VMChangeStateEntry *vm_state;
|
||||
|
|
@ -89,6 +91,7 @@ typedef struct VFIOMigration {
|
|||
uint64_t mig_flags;
|
||||
uint64_t precopy_init_size;
|
||||
uint64_t precopy_dirty_size;
|
||||
VFIOMultifd *multifd;
|
||||
bool initial_data_sent;
|
||||
|
||||
bool event_save_iterate_started;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue