From 1d671369c3f8eb2b5dfd0e1709688faba9b85f95 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 24 Apr 2013 10:46:55 +0200 Subject: 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 Signed-off-by: Paolo Bonzini --- memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'memory.c') 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) { -- cgit v1.2.1