migration/multifd: Add new migration option zero-page-detection.
authorHao Xiang <hao.xiang@bytedance.com>
Mon, 11 Mar 2024 18:00:11 +0000 (18:00 +0000)
committerPeter Xu <peterx@redhat.com>
Mon, 11 Mar 2024 20:57:05 +0000 (16:57 -0400)
commit5fdbb1dfccfd59661c95cae760b8e276c5b8e65c
tree3d8b915fe3da3f2cdc549dd0614d544ed114e067
parentc3cdf3fb18e5ecf8a3b4dc7223ddbfc53c418eb8
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>
hw/core/qdev-properties-system.c
include/hw/qdev-properties-system.h
migration/migration-hmp-cmds.c
migration/options.c
migration/options.h
migration/ram.c
qapi/migration.json