On 10/1/25 01:21, Philippe Mathieu-Daudé wrote:
cpu_physical_memory_sync_dirty_bitmap() is now only called within
system/physmem.c, by ramblock_sync_dirty_bitmap(). Reduce its scope
by making it internal to this file. Since it doesn't involve any CPU,
remove the 'cpu_' prefix.
Remove the now unneeded "qemu/rcu.h" and "system/memory.h" headers.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/system/ram_addr.h | 79 ---------------------------------------
migration/ram.c | 78 +++++++++++++++++++++++++++++++++++++-
2 files changed, 77 insertions(+), 80 deletions(-)
...> +/* Called with RCU critical section */
+static inline
+uint64_t physical_memory_sync_dirty_bitmap(RAMBlock *rb,
+ ram_addr_t start,
+ ram_addr_t length)
Drop inline at the same time.
This is a large function, and the inline was only needed for the header.
With that,
Reviewed-by: Richard Henderson <[email protected]>
r~