]> Git Repo - qemu.git/commitdiff
memory: Remove memory_region_get_dirty()
authorPeter Xu <[email protected]>
Mon, 20 May 2019 03:08:28 +0000 (11:08 +0800)
committerPaolo Bonzini <[email protected]>
Mon, 3 Jun 2019 12:03:01 +0000 (14:03 +0200)
It's never used anywhere.

Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Peter Xu <[email protected]>
Message-Id: <20190520030839[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
include/exec/memory.h
memory.c

index 9144a47f571d365ad571bb7c69d96d9ca34f9410..e6140e8a048996f6c86d9c666de63f1b4abda9f3 100644 (file)
@@ -1254,23 +1254,6 @@ void memory_region_ram_resize(MemoryRegion *mr, ram_addr_t newsize,
  */
 void memory_region_set_log(MemoryRegion *mr, bool log, unsigned client);
 
-/**
- * memory_region_get_dirty: Check whether a range of bytes is dirty
- *                          for a specified client.
- *
- * Checks whether a range of bytes has been written to since the last
- * call to memory_region_reset_dirty() with the same @client.  Dirty logging
- * must be enabled.
- *
- * @mr: the memory region being queried.
- * @addr: the address (relative to the start of the region) being queried.
- * @size: the size of the range being queried.
- * @client: the user of the logging information; %DIRTY_MEMORY_MIGRATION or
- *          %DIRTY_MEMORY_VGA.
- */
-bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr,
-                             hwaddr size, unsigned client);
-
 /**
  * memory_region_set_dirty: Mark a range of bytes as dirty in a memory region.
  *
index 3071c4bdad8562cda7ebd926c22a03ed1dff0859..0920c105aa22f525b953e33cb22b693cb7c3efaa 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -2027,14 +2027,6 @@ void memory_region_set_log(MemoryRegion *mr, bool log, unsigned client)
     memory_region_transaction_commit();
 }
 
-bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr,
-                             hwaddr size, unsigned client)
-{
-    assert(mr->ram_block);
-    return cpu_physical_memory_get_dirty(memory_region_get_ram_addr(mr) + addr,
-                                         size, client);
-}
-
 void memory_region_set_dirty(MemoryRegion *mr, hwaddr addr,
                              hwaddr size)
 {
This page took 0.033878 seconds and 4 git commands to generate.