diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-09-29 13:55:15 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-10-07 05:03:56 +0200 |
| commit | 1085a44ebb55346b30888ce1b7b18565a719f78b (patch) | |
| tree | 4ce8d29a2d5760bf036f6c201974e6a1bf3a74c4 /include/system/ram_addr.h | |
| parent | 57f3d859bf947cdef418dec14445b1f8935f2d20 (diff) | |
| download | focaccia-qemu-1085a44ebb55346b30888ce1b7b18565a719f78b.tar.gz focaccia-qemu-1085a44ebb55346b30888ce1b7b18565a719f78b.zip | |
system/physmem: Reduce cpu_physical_memory_clear_dirty_range() scope
cpu_physical_memory_clear_dirty_range() is now only called within system/physmem.c, by qemu_ram_resize(). Reduce its scope by making it internal to this file. Since it doesn't involve any CPU, remove the 'cpu_' prefix. As it operates on a range, rename @start as @addr. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20251001175448.18933-16-philmd@linaro.org>
Diffstat (limited to 'include/system/ram_addr.h')
| -rw-r--r-- | include/system/ram_addr.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/system/ram_addr.h b/include/system/ram_addr.h index 54b5f5ec16..cafd258580 100644 --- a/include/system/ram_addr.h +++ b/include/system/ram_addr.h @@ -175,15 +175,6 @@ bool cpu_physical_memory_snapshot_get_dirty(DirtyBitmapSnapshot *snap, ram_addr_t start, ram_addr_t length); -static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start, - ram_addr_t length) -{ - cpu_physical_memory_test_and_clear_dirty(start, length, DIRTY_MEMORY_MIGRATION); - cpu_physical_memory_test_and_clear_dirty(start, length, DIRTY_MEMORY_VGA); - cpu_physical_memory_test_and_clear_dirty(start, length, DIRTY_MEMORY_CODE); -} - - /* Called with RCU critical section */ static inline uint64_t cpu_physical_memory_sync_dirty_bitmap(RAMBlock *rb, |