s390x/cpumodel: document S390FeatDef.bit not applicable
[qemu.git] / migration / block.h
blob3178609dbd7b2922c438a616f2586075d4f2e4c6
1 /*
2 * QEMU live block migration
4 * Copyright IBM, Corp. 2009
6 * Authors:
7 * Liran Schour <lirans@il.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef MIGRATION_BLOCK_H
15 #define MIGRATION_BLOCK_H
17 #ifdef CONFIG_LIVE_BLOCK_MIGRATION
18 int blk_mig_active(void);
19 int blk_mig_bulk_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);
24 #else
25 static inline int blk_mig_active(void)
27 return false;
30 static inline int blk_mig_bulk_active(void)
32 return false;
35 static inline uint64_t blk_mig_bytes_transferred(void)
37 return 0;
40 static inline uint64_t blk_mig_bytes_remaining(void)
42 return 0;
45 static inline uint64_t blk_mig_bytes_total(void)
47 return 0;
49 #endif /* CONFIG_LIVE_BLOCK_MIGRATION */
51 void migrate_set_block_enabled(bool value, Error **errp);
52 #endif /* MIGRATION_BLOCK_H */