mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 21:33:53 -06:00
migration: Add thread pool of optional load threads
Some drivers might want to make use of auxiliary helper threads during VM state loading, for example to make sure that their blocking (sync) I/O operations don't block the rest of the migration process. Add a migration core managed thread pool to facilitate this use case. The migration core will wait for these threads to finish before (re)starting the VM at destination. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Link: https://lore.kernel.org/qemu-devel/b09fd70369b6159c75847e69f235cb908b02570c.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
18eb55546a
commit
b1937fd1eb
6 changed files with 105 additions and 4 deletions
|
@ -45,9 +45,12 @@ bool migrate_ram_is_ignored(RAMBlock *block);
|
|||
/* migration/block.c */
|
||||
|
||||
AnnounceParameters *migrate_announce_params(void);
|
||||
|
||||
/* migration/savevm.c */
|
||||
|
||||
void dump_vmstate_json_to_file(FILE *out_fp);
|
||||
void qemu_loadvm_start_load_thread(MigrationLoadThread function,
|
||||
void *opaque);
|
||||
|
||||
/* migration/migration.c */
|
||||
void migration_object_init(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue