]> git.proxmox.com Git - mirror_qemu.git/commit
exec: hide mr->ram_addr from qemu_get_ram_ptr users
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Feb 2016 10:02:12 +0000 (11:02 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 29 May 2016 07:11:12 +0000 (09:11 +0200)
commit0878d0e11ba8013dd759c6921cbf05ba6a41bd71
tree725db4314abc3e4975ec17d427d560cc0c1bbc13
parent07bdaa4196b51bc7ffa7c3f74e9e4a9dc8a7966a
exec: hide mr->ram_addr from qemu_get_ram_ptr users

Let users of qemu_get_ram_ptr and qemu_ram_ptr_length pass in an
address that is relative to the MemoryRegion.  This basically means
what address_space_translate returns.

Because the semantics of the second parameter change, rename the
function to qemu_map_ram_ptr.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/memory.h
memory.c
scripts/dump-guest-memory.py