summary refs log tree commit diff stats
path: root/migration/options.h
diff options
context:
space:
mode:
authorHao Xiang <hao.xiang@bytedance.com>2024-03-11 18:00:11 +0000
committerPeter Xu <peterx@redhat.com>2024-03-11 16:57:05 -0400
commit5fdbb1dfccfd59661c95cae760b8e276c5b8e65c (patch)
tree3d8b915fe3da3f2cdc549dd0614d544ed114e067 /migration/options.h
parentc3cdf3fb18e5ecf8a3b4dc7223ddbfc53c418eb8 (diff)
downloadfocaccia-qemu-5fdbb1dfccfd59661c95cae760b8e276c5b8e65c.tar.gz
focaccia-qemu-5fdbb1dfccfd59661c95cae760b8e276c5b8e65c.zip
migration/multifd: Add new migration option zero-page-detection.
This new parameter controls where the zero page checking is running.
1. If this parameter is set to 'legacy', zero page checking is
done in the migration main thread.
2. If this parameter is set to 'none', zero page checking is disabled.

Signed-off-by: Hao Xiang <hao.xiang@bytedance.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Link: https://lore.kernel.org/r/20240311180015.3359271-4-hao.xiang@linux.dev
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/options.h')
-rw-r--r--migration/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/options.h b/migration/options.h
index b6b69c2bb7..ab8199e207 100644
--- a/migration/options.h
+++ b/migration/options.h
@@ -90,6 +90,7 @@ const char *migrate_tls_authz(void);
 const char *migrate_tls_creds(void);
 const char *migrate_tls_hostname(void);
 uint64_t migrate_xbzrle_cache_size(void);
+ZeroPageDetection migrate_zero_page_detection(void);
 
 /* parameters setters */