summaryrefslogtreecommitdiffstats
path: root/migration/savevm.h
diff options
context:
space:
mode:
authorAndrey Gruzdev2021-01-29 11:14:06 +0100
committerDr. David Alan Gilbert2021-02-08 12:19:51 +0100
commit8518278a6af589ccc401f06e35f171b1e6fae800 (patch)
treeb4875300b2f5d8595f56e9e4a0803f6dab5aa4f8 /migration/savevm.h
parentmigration: support UFFD write fault processing in ram_save_iterate() (diff)
downloadqemu-8518278a6af589ccc401f06e35f171b1e6fae800.tar.gz
qemu-8518278a6af589ccc401f06e35f171b1e6fae800.tar.xz
qemu-8518278a6af589ccc401f06e35f171b1e6fae800.zip
migration: implementation of background snapshot thread
Introducing implementation of 'background' snapshot thread which in overall follows the logic of precopy migration while internally utilizes completely different mechanism to 'freeze' vmstate at the start of snapshot creation. This mechanism is based on userfault_fd with wr-protection support and is Linux-specific. Signed-off-by: Andrey Gruzdev <andrey.gruzdev@virtuozzo.com> Acked-by: Peter Xu <peterx@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20210129101407.103458-5-andrey.gruzdev@virtuozzo.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/savevm.h')
-rw-r--r--migration/savevm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/savevm.h b/migration/savevm.h
index ba64a7e271..aaee2528ed 100644
--- a/migration/savevm.h
+++ b/migration/savevm.h
@@ -64,5 +64,7 @@ int qemu_loadvm_state(QEMUFile *f);
void qemu_loadvm_state_cleanup(void);
int qemu_loadvm_state_main(QEMUFile *f, MigrationIncomingState *mis);
int qemu_load_device_state(QEMUFile *f);
+int qemu_savevm_state_complete_precopy_non_iterable(QEMUFile *f,
+ bool in_postcopy, bool inactivate_disks);
#endif