diff options
author | lirans@il.ibm.com <lirans@il.ibm.com> | 2009-11-02 15:40:41 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-17 08:03:31 -0600 |
commit | 7cd1e32a860895ccca89eb90a0226efbcd969b55 (patch) | |
tree | 3b2c8712ea67b77d1a7a4b86a532744f9daa2aac /block_int.h | |
parent | char: rename qemu_chr_reset to qemu_chr_generic_open (diff) | |
download | qemu-kvm-7cd1e32a860895ccca89eb90a0226efbcd969b55.tar.gz qemu-kvm-7cd1e32a860895ccca89eb90a0226efbcd969b55.tar.bz2 qemu-kvm-7cd1e32a860895ccca89eb90a0226efbcd969b55.zip |
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>
Diffstat (limited to 'block_int.h')
-rw-r--r-- | block_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block_int.h b/block_int.h index 8e72abee0..7ebe926f5 100644 --- a/block_int.h +++ b/block_int.h @@ -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; }; |