qemu/include/migration
Steve Sistare e7d79011a4 migration: cpr-state
CPR must save state that is needed after QEMU is restarted, when devices
are realized.  Thus the extra state cannot be saved in the migration
channel, as objects must already exist before that channel can be loaded.
Instead, define auxilliary state structures and vmstate descriptions, not
associated with any registered object, and serialize the aux state to a
cpr-specific channel in cpr_state_save.  Deserialize in cpr_state_load
after QEMU restarts, before devices are realized.

Provide accessors for clients to register file descriptors for saving.
The mechanism for passing the fd's to the new process will be specific
to each migration mode, and added in subsequent patches.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1736967650-129648-8-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
2025-01-29 11:43:04 -03:00
..
blocker.h migration: per-mode blockers 2023-11-01 16:13:59 +01:00
client-options.h migration: export vcpu_dirty_limit_period 2024-03-11 16:28:59 -04:00
colo.h migration/colo: make colo_incoming_co() return void 2024-05-22 17:34:31 -03:00
cpr.h migration: cpr-state 2025-01-29 11:43:04 -03:00
cpu.h Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
failover.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
global_state.h migration: never fail in global_state_store() 2023-06-02 01:03:19 +02:00
misc.h migration/block: Rewrite disk activation 2025-01-09 17:38:57 -03:00
qemu-file-types.h migration/qemu-file: add utility methods for working with seekable channels 2024-03-01 15:42:04 +08:00
register.h migration: Add Error** argument to .load_setup() handler 2024-04-23 18:36:01 -04:00
snapshot.h migration: preserve suspended for snapshot 2024-01-04 09:52:42 +08:00
vmstate.h migration: Remove unused VMSTATE_ARRAY_TEST() macro 2024-06-21 14:37:58 -03:00