Stefan suggested to make qemu_ram_writeback() target agnostic, Paolo to add memory_region_msync(), and Peter to remove "exec/ram_addr.h" [*].
I let a single function in this file, cpu_physical_memory_sync_dirty_bitmap(), to let the maintainer have the pleasure to remove this header definitively himself :) Based-on: <20200507155813.16169-1-phi...@redhat.com> "Move Xen accelerator code under accel/xen/" https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg01722.html [*] https://www.mail-archive.com/qemu-block@nongnu.org/msg66242.html Philippe Mathieu-Daudé (10): exec: Rename qemu_ram_writeback() as qemu_ram_msync() exec/ramblock: Add missing 'qemu/rcu.h' include exec: Move tb_invalidate_phys_range() to 'exec/exec-all.h' exec/memory-internal: Check CONFIG_SOFTMMU instead of CONFIG_USER_ONLY exec: Move qemu_minrampagesize/qemu_maxrampagesize to 'qemu-common.h' exec: Move ramblock_recv_bitmap_offset() to migration/ram.c exec: Move all RAMBlock functions to 'exec/ramblock.h' hw/block: Let the NVMe emulated device be target-agnostic exec: Update coding style to make checkpatch.pl happy exec: Move cpu_physical_memory_* functions to 'exec/memory-internal.h' include/exec/cpu-common.h | 24 -- include/exec/exec-all.h | 14 +- include/exec/memory-internal.h | 307 +++++++++++++++++++++++- include/exec/ram_addr.h | 415 +-------------------------------- include/exec/ramblock.h | 135 +++++++++++ include/qemu-common.h | 10 + migration/migration.h | 1 + accel/tcg/cputlb.c | 1 - accel/tcg/translate-all.c | 2 - exec.c | 2 +- hw/block/nvme.c | 5 +- hw/ppc/spapr.c | 1 - hw/ppc/spapr_caps.c | 2 +- hw/ppc/spapr_pci.c | 1 - hw/s390x/s390-stattrib-kvm.c | 1 - hw/s390x/s390-stattrib.c | 1 - hw/s390x/s390-virtio-ccw.c | 2 +- hw/vfio/spapr.c | 2 +- hw/virtio/vhost-user.c | 1 + hw/virtio/vhost.c | 1 + hw/virtio/virtio-balloon.c | 1 + memory.c | 4 +- migration/migration.c | 1 + migration/postcopy-ram.c | 1 + migration/ram.c | 8 + migration/savevm.c | 1 + stubs/ram-block.c | 2 +- target/ppc/kvm.c | 1 - target/s390x/kvm.c | 1 - util/vfio-helpers.c | 2 +- hw/block/Makefile.objs | 2 +- 31 files changed, 485 insertions(+), 467 deletions(-) -- 2.21.3