]>
Commit | Line | Data |
---|---|---|
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 |
c163b5ca | 18 | void blk_mig_init(void); |
25f23643 JK |
19 | int blk_mig_active(void); |
20 | uint64_t blk_mig_bytes_transferred(void); | |
21 | uint64_t blk_mig_bytes_remaining(void); | |
22 | uint64_t blk_mig_bytes_total(void); | |
3c095c3f | 23 | |
ed1701c6 DDAG |
24 | #else |
25 | static inline void blk_mig_init(void) { } | |
26 | static inline int blk_mig_active(void) | |
27 | { | |
28 | return false; | |
29 | } | |
30 | static inline uint64_t blk_mig_bytes_transferred(void) | |
31 | { | |
32 | return 0; | |
33 | } | |
34 | ||
35 | static inline uint64_t blk_mig_bytes_remaining(void) | |
36 | { | |
37 | return 0; | |
38 | } | |
2833c59b | 39 | |
ed1701c6 DDAG |
40 | static inline uint64_t blk_mig_bytes_total(void) |
41 | { | |
42 | return 0; | |
43 | } | |
44 | #endif /* CONFIG_LIVE_BLOCK_MIGRATION */ | |
45 | ||
46 | void migrate_set_block_enabled(bool value, Error **errp); | |
121d0712 | 47 | #endif /* MIGRATION_BLOCK_H */ |