The result of memory_region_get_ram_addr is often added in the caller of qemu_get_ram_ptr and then subtracted in qemu_get_ram_ptr; avoid the indirection. Prompted by mst's remark on confusion between hwaddr and ram_addr_t.
Paolo Paolo Bonzini (2): memory: remove unnecessary masking of MemoryRegion ram_addr memory: hide ram_addr_t from qemu_get_ram_ptr users exec.c | 49 +++++++++++++++----------------------------- include/exec/memory.h | 1 - memory.c | 7 +++---- migration/savevm.c | 4 ++-- scripts/dump-guest-memory.py | 19 +++-------------- translate-all.c | 3 +-- 6 files changed, 25 insertions(+), 58 deletions(-) -- 1.8.3.1