2009-11-02 14:40:58 +01:00
|
|
|
/*
|
|
|
|
* QEMU live block migration
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2009
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Liran Schour <lirans@il.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-06-29 10:12:57 +02:00
|
|
|
#ifndef MIGRATION_BLOCK_H
|
|
|
|
#define MIGRATION_BLOCK_H
|
2009-11-02 14:40:58 +01:00
|
|
|
|
2017-05-15 16:05:29 +02:00
|
|
|
#ifdef CONFIG_LIVE_BLOCK_MIGRATION
|
2009-11-30 18:21:21 +01:00
|
|
|
int blk_mig_active(void);
|
2017-09-26 12:33:16 +02:00
|
|
|
int blk_mig_bulk_active(void);
|
2009-11-30 18:21:21 +01:00
|
|
|
uint64_t blk_mig_bytes_transferred(void);
|
|
|
|
uint64_t blk_mig_bytes_remaining(void);
|
|
|
|
uint64_t blk_mig_bytes_total(void);
|
2009-11-30 18:21:20 +01:00
|
|
|
|
2017-05-15 16:05:29 +02:00
|
|
|
#else
|
|
|
|
static inline int blk_mig_active(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2017-09-26 12:33:16 +02:00
|
|
|
|
|
|
|
static inline int blk_mig_bulk_active(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-05-15 16:05:29 +02:00
|
|
|
static inline uint64_t blk_mig_bytes_transferred(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline uint64_t blk_mig_bytes_remaining(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2017-04-05 18:32:37 +02:00
|
|
|
|
2017-05-15 16:05:29 +02:00
|
|
|
static inline uint64_t blk_mig_bytes_total(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_LIVE_BLOCK_MIGRATION */
|
|
|
|
|
|
|
|
void migrate_set_block_enabled(bool value, Error **errp);
|
2016-06-29 10:12:57 +02:00
|
|
|
#endif /* MIGRATION_BLOCK_H */
|