summaryrefslogtreecommitdiff
path: root/include/migration/failover.h
blob: ad91ef238198d4f96bc6e62bb29a25be5237f754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 *  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_FAILOVER_H
#define QEMU_FAILOVER_H

#include "qemu-common.h"
#include "qapi-types.h"

void failover_init_state(void);
FailoverStatus failover_set_state(FailoverStatus old_state,
                                     FailoverStatus new_state);
FailoverStatus failover_get_state(void);
void failover_request_active(Error **errp);
bool failover_request_is_active(void);

#endif