mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
memory: hide memory_region_sync_dirty_bitmap behind DirtyBitmapSnapshot
Simplify the users of memory_region_snapshot_and_clear_dirty, so that they do not have to call memory_region_sync_dirty_bitmap explicitly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
77302fb5df
commit
0fe1eca7dc
9 changed files with 20 additions and 43 deletions
|
@ -1135,17 +1135,6 @@ bool memory_region_snapshot_get_dirty(MemoryRegion *mr,
|
|||
DirtyBitmapSnapshot *snap,
|
||||
hwaddr addr, hwaddr size);
|
||||
|
||||
/**
|
||||
* memory_region_sync_dirty_bitmap: Synchronize a region's dirty bitmap with
|
||||
* any external TLBs (e.g. kvm)
|
||||
*
|
||||
* Flushes dirty information from accelerators such as kvm and vhost-net
|
||||
* and makes it available to users of the memory API.
|
||||
*
|
||||
* @mr: the region being flushed.
|
||||
*/
|
||||
void memory_region_sync_dirty_bitmap(MemoryRegion *mr);
|
||||
|
||||
/**
|
||||
* memory_region_reset_dirty: Mark a range of pages as clean, for a specified
|
||||
* client.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue