root / block-migration.h @ bfb811ad
History | View | Annotate | Download (610 Bytes)
1 | c163b5ca | lirans@il.ibm.com | /*
|
---|---|---|---|
2 | c163b5ca | lirans@il.ibm.com | * QEMU live block migration
|
3 | c163b5ca | lirans@il.ibm.com | *
|
4 | c163b5ca | lirans@il.ibm.com | * Copyright IBM, Corp. 2009
|
5 | c163b5ca | lirans@il.ibm.com | *
|
6 | c163b5ca | lirans@il.ibm.com | * Authors:
|
7 | c163b5ca | lirans@il.ibm.com | * Liran Schour <lirans@il.ibm.com>
|
8 | c163b5ca | lirans@il.ibm.com | *
|
9 | c163b5ca | lirans@il.ibm.com | * This work is licensed under the terms of the GNU GPL, version 2. See
|
10 | c163b5ca | lirans@il.ibm.com | * the COPYING file in the top-level directory.
|
11 | c163b5ca | lirans@il.ibm.com | *
|
12 | c163b5ca | lirans@il.ibm.com | */
|
13 | c163b5ca | lirans@il.ibm.com | |
14 | c163b5ca | lirans@il.ibm.com | #ifndef BLOCK_MIGRATION_H
|
15 | c163b5ca | lirans@il.ibm.com | #define BLOCK_MIGRATION_H
|
16 | c163b5ca | lirans@il.ibm.com | |
17 | c163b5ca | lirans@il.ibm.com | typedef struct BlkMigDevState { |
18 | c163b5ca | lirans@il.ibm.com | BlockDriverState *bs; |
19 | c163b5ca | lirans@il.ibm.com | int bulk_completed;
|
20 | c163b5ca | lirans@il.ibm.com | int shared_base;
|
21 | c163b5ca | lirans@il.ibm.com | struct BlkMigDevState *next;
|
22 | c163b5ca | lirans@il.ibm.com | int64_t cur_sector; |
23 | c163b5ca | lirans@il.ibm.com | int64_t total_sectors; |
24 | c163b5ca | lirans@il.ibm.com | int64_t dirty; |
25 | c163b5ca | lirans@il.ibm.com | } BlkMigDevState; |
26 | c163b5ca | lirans@il.ibm.com | |
27 | c163b5ca | lirans@il.ibm.com | void blk_mig_init(void); |
28 | c163b5ca | lirans@il.ibm.com | void blk_mig_info(void); |
29 | c163b5ca | lirans@il.ibm.com | #endif /* BLOCK_MIGRATION_H */ |