block migration: Cleanup dirty tracking code
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 30 Nov 2009 17:21:20 +0000 (18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 16:48:52 +0000 (10:48 -0600)
commitb4a07217ca8844e1b2cf29c16bd000ecc3213160
treedb0eef6fb2a061b09f7804239a8260e6b45b2df2
parentd3a40a8e567ac5aa393364857daeac4fc00c554c
block migration: Cleanup dirty tracking code

This switches the dirty bitmap to a true bitmap, reducing its footprint
(specifically in caches). It moreover fixes off-by-one bugs in
set_dirty_bitmap (nb_sectors+1 were marked) and bdrv_get_dirty (limit
check allowed one sector behind end of drive). And is drops redundant
dirty_tracking field from BlockDriverState.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block_int.h