xref: /openbmc/qemu/include/migration/failover.h (revision ba632924)
1 /*
2  *  COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO)
3  *  (a.k.a. Fault Tolerance or Continuous Replication)
4  *
5  * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD.
6  * Copyright (c) 2016 FUJITSU LIMITED
7  * Copyright (c) 2016 Intel Corporation
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or
10  * later.  See the COPYING file in the top-level directory.
11  */
12 
13 #ifndef QEMU_FAILOVER_H
14 #define QEMU_FAILOVER_H
15 
16 #include "qemu-common.h"
17 #include "qapi/qapi-types-migration.h"
18 
19 void failover_init_state(void);
20 FailoverStatus failover_set_state(FailoverStatus old_state,
21                                      FailoverStatus new_state);
22 FailoverStatus failover_get_state(void);
23 void failover_request_active(Error **errp);
24 bool failover_request_is_active(void);
25 
26 #endif
27