physmem: Expose tlb_reset_dirty_range_all()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 12 Mar 2024 20:14:56 +0000 (21:14 +0100)
committerPeter Xu <peterx@redhat.com>
Tue, 12 Mar 2024 21:39:40 +0000 (17:39 -0400)
In order to call tlb_reset_dirty_range_all() outside of
system/physmem.c, expose its prototype.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20240312201458.79532-2-philmd@linaro.org
Signed-off-by: Peter Xu <peterx@redhat.com>
include/exec/exec-all.h
system/physmem.c

index ce36bb10d4328c4293f0e3e74cbe05b54c6b1a27..3e5350169154970c85c9cda459654b960d254256 100644 (file)
@@ -655,6 +655,7 @@ static inline void mmap_unlock(void) {}
 
 void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
 void tlb_set_dirty(CPUState *cpu, vaddr addr);
+void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
 
 MemoryRegionSection *
 address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr,
index 6cfb7a80ab84658e27c03b43bb9a318e78de0280..5441480ff07185391a58e421a0d7ba2f3705befd 100644 (file)
@@ -819,7 +819,7 @@ found:
     return block;
 }
 
-static void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length)
+void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length)
 {
     CPUState *cpu;
     ram_addr_t start1;