aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-04-24 10:46:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-05-24 18:42:51 +0200
commit1d671369c3f8eb2b5dfd0e1709688faba9b85f95 (patch)
treec424569dc8f547f9088b5d4e5678fede99f38d17 /memory.c
parent5553e3a5c95f4a842489384a2fafb27d7555a4ef (diff)
memory: make memory_global_sync_dirty_bitmap take an AddressSpace
Since this is a MemoryListener operation, it only makes sense on an AddressSpace granularity. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index 54314636e3..11bbeb7445 100644
--- a/memory.c
+++ b/memory.c
@@ -1485,9 +1485,8 @@ MemoryRegionSection memory_region_find(MemoryRegion *mr,
return ret;
}
-void memory_global_sync_dirty_bitmap(MemoryRegion *address_space)
+void address_space_sync_dirty_bitmap(AddressSpace *as)
{
- AddressSpace *as = memory_region_to_address_space(address_space);
FlatRange *fr;
FOR_EACH_FLAT_RANGE(fr, as->current_map) {