memory: split memory_region_from_host from qemu_ram_addr_from_host
commit07bdaa4196b51bc7ffa7c3f74e9e4a9dc8a7966a
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Mar 2016 11:55:08 +0000 (25 12:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 29 May 2016 07:11:12 +0000 (29 09:11 +0200)
tree5892b36a9f4f08503620ea876dd56f1ae6f763e2
parentf615f39616c4fd1a3a3b078af8d75bb4be6390de
memory: split memory_region_from_host from qemu_ram_addr_from_host

Move the old qemu_ram_addr_from_host to memory_region_from_host and
make it return an offset within the region.  For qemu_ram_addr_from_host
return the ram_addr_t directly, similar to what it was before
commit 1b5ec23 ("memory: return MemoryRegion from qemu_ram_addr_from_host",
2013-07-04).

Reviewed-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cputlb.c
exec.c
hw/virtio/vhost-user.c
include/exec/cpu-common.h
include/exec/memory.h
memory.c
target-i386/kvm.c