]> Git Repo - qemu.git/blame - migration/block.h
msf2: Add Smartfusion2 SPI controller
[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 <[email protected]>
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
JK
18int blk_mig_active(void);
19uint64_t blk_mig_bytes_transferred(void);
20uint64_t blk_mig_bytes_remaining(void);
21uint64_t blk_mig_bytes_total(void);
3c095c3f 22
ed1701c6 23#else
ed1701c6
DDAG
24static inline int blk_mig_active(void)
25{
26 return false;
27}
28static inline uint64_t blk_mig_bytes_transferred(void)
29{
30 return 0;
31}
32
33static inline uint64_t blk_mig_bytes_remaining(void)
34{
35 return 0;
36}
2833c59b 37
ed1701c6
DDAG
38static inline uint64_t blk_mig_bytes_total(void)
39{
40 return 0;
41}
42#endif /* CONFIG_LIVE_BLOCK_MIGRATION */
43
44void migrate_set_block_enabled(bool value, Error **errp);
121d0712 45#endif /* MIGRATION_BLOCK_H */
This page took 0.376997 seconds and 4 git commands to generate.