MAINTAINERS | 1 + docs/devel/loads-stores.rst | 6 +- scripts/coccinelle/exec_rw_const.cocci | 22 - include/exec/cpu-common.h | 21 +- include/system/memory.h | 11 + include/system/physmem.h | 54 +++ include/system/ram_addr.h | 426 ------------------- include/system/ramblock.h | 27 +- accel/kvm/kvm-all.c | 6 +- accel/tcg/cputlb.c | 13 +- hw/core/loader.c | 2 +- hw/hyperv/hv-balloon-our_range_memslots.c | 1 + hw/ppc/spapr.c | 1 - hw/ppc/spapr_caps.c | 1 - hw/ppc/spapr_pci.c | 1 - hw/remote/memory.c | 1 - hw/remote/proxy-memory-listener.c | 1 - hw/s390x/s390-stattrib-kvm.c | 2 +- hw/s390x/s390-stattrib.c | 2 +- hw/s390x/s390-virtio-ccw.c | 1 - hw/s390x/sclp.c | 14 +- hw/vfio/container-legacy.c | 10 +- hw/vfio/container.c | 5 +- hw/vfio/listener.c | 2 +- hw/vfio/spapr.c | 1 - hw/virtio/vhost.c | 7 +- hw/virtio/virtio-balloon.c | 1 + hw/virtio/virtio-mem.c | 2 +- hw/virtio/virtio.c | 10 +- hw/xen/xen-hvm-common.c | 8 +- migration/ram.c | 81 +++- system/memory.c | 9 +- system/physmem.c | 475 +++++++++++++++++----- target/arm/tcg/mte_helper.c | 5 +- target/i386/arch_memory_mapping.c | 10 +- target/i386/kvm/xen-emu.c | 4 +- target/i386/nvmm/nvmm-all.c | 5 +- target/i386/whpx/whpx-all.c | 7 +- target/s390x/mmu_helper.c | 7 +- system/memory_ldst.c.inc | 2 +- tests/tsan/ignore.tsan | 4 +- 41 files changed, 636 insertions(+), 633 deletions(-) create mode 100644 include/system/physmem.h