]> git.proxmox.com Git - mirror_qemu.git/blame - migration/block.h
migration/postcopy: remove redundant cpu_synchronize_all_post_init
[mirror_qemu.git] / migration / block.h
CommitLineData
c163b5ca
LS
1/*
2 * QEMU live block migration
3 *
4 * Copyright IBM, Corp. 2009
5 *
6 * Authors:
7 * Liran Schour <lirans@il.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
11 *
12 */
13
121d0712
MA
14#ifndef MIGRATION_BLOCK_H
15#define MIGRATION_BLOCK_H
c163b5ca 16
ed1701c6 17#ifdef CONFIG_LIVE_BLOCK_MIGRATION
25f23643 18int blk_mig_active(void);
9ac78b61 19int blk_mig_bulk_active(void);
25f23643
JK
20uint64_t blk_mig_bytes_transferred(void);
21uint64_t blk_mig_bytes_remaining(void);
22uint64_t blk_mig_bytes_total(void);
3c095c3f 23
ed1701c6 24#else
ed1701c6
DDAG
25static inline int blk_mig_active(void)
26{
27 return false;
28}
9ac78b61
PL
29
30static inline int blk_mig_bulk_active(void)
31{
32 return false;
33}
34
ed1701c6
DDAG
35static inline uint64_t blk_mig_bytes_transferred(void)
36{
37 return 0;
38}
39
40static inline uint64_t blk_mig_bytes_remaining(void)
41{
42 return 0;
43}
2833c59b 44
ed1701c6
DDAG
45static inline uint64_t blk_mig_bytes_total(void)
46{
47 return 0;
48}
49#endif /* CONFIG_LIVE_BLOCK_MIGRATION */
50
51void migrate_set_block_enabled(bool value, Error **errp);
121d0712 52#endif /* MIGRATION_BLOCK_H */