aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-03-21 09:35:04 +0100
committerJuan Quintela <quintela@redhat.com>2017-04-21 12:25:39 +0200
commit15440dd5a08a6b10538b9e62c6d95ac8a838d78a (patch)
treeff6658ce48e43827adbee6214e959273bffeccf1 /include/exec
parent030ce1f8612215fcbe9d353dfeaeb2937f8e3f94 (diff)
downloadqemu-15440dd5a08a6b10538b9e62c6d95ac8a838d78a.zip
qemu-15440dd5a08a6b10538b9e62c6d95ac8a838d78a.tar.gz
qemu-15440dd5a08a6b10538b9e62c6d95ac8a838d78a.tar.bz2
ram: Pass RAMBlock to bitmap_sync
We change the meaning of start to be the offset from the beggining of the block. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/ram_addr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 9aadc5c..8a1372c 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -354,11 +354,13 @@ static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start,
static inline
uint64_t cpu_physical_memory_sync_dirty_bitmap(unsigned long *dest,
+ RAMBlock *rb,
ram_addr_t start,
ram_addr_t length,
uint64_t *real_dirty_pages)
{
ram_addr_t addr;
+ start = rb->offset + start;
unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS);
uint64_t num_dirty = 0;