mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Expose a mechanism to trace block writes
To support live migration without shared storage we need to be able to trace writes to disk while migrating. This Patch expose dirty block tracking per device to be polled from upper layer. Changes from v4: - Register dirty tracking for each block device. - Minor coding style issues. - Block.c will now manage a dirty bitmap per device once bdrv_set_dirty_tracking() is called. Bitmap is polled by the upper layer (block-migration.c). Signed-off-by: Liran Schour <lirans@il.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
127338e610
commit
7cd1e32a86
3 changed files with 86 additions and 2 deletions
|
@ -168,6 +168,8 @@ struct BlockDriverState {
|
|||
int cyls, heads, secs, translation;
|
||||
int type;
|
||||
char device_name[32];
|
||||
int dirty_tracking;
|
||||
uint8_t *dirty_bitmap;
|
||||
BlockDriverState *next;
|
||||
void *private;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue