Browse Source
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>pull/22/merge
committed by
Amit Shah
9 changed files with 89 additions and 2 deletions
@ -0,0 +1,20 @@ |
|||
/*
|
|||
* COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) |
|||
* (a.k.a. Fault Tolerance or Continuous Replication) |
|||
* |
|||
* Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD. |
|||
* Copyright (c) 2016 FUJITSU LIMITED |
|||
* Copyright (c) 2016 Intel Corporation |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2 or |
|||
* later. See the COPYING file in the top-level directory. |
|||
*/ |
|||
|
|||
#ifndef QEMU_COLO_H |
|||
#define QEMU_COLO_H |
|||
|
|||
#include "qemu-common.h" |
|||
|
|||
bool colo_supported(void); |
|||
|
|||
#endif |
|||
@ -0,0 +1,19 @@ |
|||
/*
|
|||
* COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) |
|||
* (a.k.a. Fault Tolerance or Continuous Replication) |
|||
* |
|||
* Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD. |
|||
* Copyright (c) 2016 FUJITSU LIMITED |
|||
* Copyright (c) 2016 Intel Corporation |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2 or |
|||
* later. See the COPYING file in the top-level directory. |
|||
*/ |
|||
|
|||
#include "qemu/osdep.h" |
|||
#include "migration/colo.h" |
|||
|
|||
bool colo_supported(void) |
|||
{ |
|||
return false; |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
/*
|
|||
* COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) |
|||
* (a.k.a. Fault Tolerance or Continuous Replication) |
|||
* |
|||
* Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD. |
|||
* Copyright (c) 2016 FUJITSU LIMITED |
|||
* Copyright (c) 2016 Intel Corporation |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2 or |
|||
* later. See the COPYING file in the top-level directory. |
|||
*/ |
|||
|
|||
#include "qemu/osdep.h" |
|||
#include "migration/colo.h" |
|||
|
|||
bool colo_supported(void) |
|||
{ |
|||
return false; |
|||
} |
|||
Loading…
Reference in new issue