xref: /openbmc/qemu/include/migration/failover.h (revision 7c08eefc)
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 "qapi/qapi-types-migration.h"
17 
18 void failover_init_state(void);
19 FailoverStatus failover_set_state(FailoverStatus old_state,
20                                      FailoverStatus new_state);
21 FailoverStatus failover_get_state(void);
22 void failover_request_active(Error **errp);
23 bool failover_request_is_active(void);
24 
25 #endif
26