mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
migration: Introduce capability 'x-colo' to migration
We add helper function colo_supported() to indicate whether colo is supported or not, with which we use to control whether or not showing 'x-colo' string to users, they can use qmp command 'query-migrate-capabilities' or hmp command 'info migrate_capabilities' to learn if colo is supported. The default value for COLO (COarse-Grain LOck Stepping) is disabled. Cc: Juan Quintela <quintela@redhat.com> Cc: Amit Shah <amit.shah@redhat.com> Cc: Eric Blake <eblake@redhat.com> Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Amit Shah <amit@amitshah.net>
This commit is contained in:
parent
5b2ecabaea
commit
35a6ed4f71
9 changed files with 89 additions and 2 deletions
|
@ -2861,6 +2861,7 @@ Enable/Disable migration capabilities
|
|||
- "compress": use multiple compression threads to accelerate live migration
|
||||
- "events": generate events for each migration state change
|
||||
- "postcopy-ram": postcopy mode for live migration
|
||||
- "x-colo": COarse-Grain LOck Stepping (COLO) for Non-stop Service
|
||||
|
||||
Arguments:
|
||||
|
||||
|
@ -2882,6 +2883,7 @@ Query current migration capabilities
|
|||
- "compress": Multiple compression threads state (json-bool)
|
||||
- "events": Migration state change event state (json-bool)
|
||||
- "postcopy-ram": postcopy ram state (json-bool)
|
||||
- "x-colo": COarse-Grain LOck Stepping for Non-stop Service (json-bool)
|
||||
|
||||
Arguments:
|
||||
|
||||
|
@ -2895,7 +2897,8 @@ Example:
|
|||
{"state": false, "capability": "zero-blocks"},
|
||||
{"state": false, "capability": "compress"},
|
||||
{"state": true, "capability": "events"},
|
||||
{"state": false, "capability": "postcopy-ram"}
|
||||
{"state": false, "capability": "postcopy-ram"},
|
||||
{"state": false, "capability": "x-colo"}
|
||||
]}
|
||||
|
||||
migrate-set-parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue