Re: [Qemu-devel] [PATCH 14/15] memory: return MemoryRegion from qemu_ram_addr_from_host

2013-06-03 Thread Paolo Bonzini
Il 02/06/2013 18:04, Peter Maydell ha scritto: On 2 June 2013 16:43, Paolo Bonzini pbonz...@redhat.com wrote: -int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); +MemoryRegion *qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); ram_addr_t qemu_ram_addr_from_host_nofail(void

Re: [Qemu-devel] [PATCH 14/15] memory: return MemoryRegion from qemu_ram_addr_from_host

2013-06-03 Thread Paolo Bonzini
Il 03/06/2013 08:40, Paolo Bonzini ha scritto: Il 02/06/2013 18:04, Peter Maydell ha scritto: On 2 June 2013 16:43, Paolo Bonzini pbonz...@redhat.com wrote: -int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); +MemoryRegion *qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr);

[Qemu-devel] [PATCH 14/15] memory: return MemoryRegion from qemu_ram_addr_from_host

2013-06-02 Thread Paolo Bonzini
It will be needed in the next patch. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- exec.c| 35 +-- include/exec/cpu-common.h | 2 +- target-i386/kvm.c | 4 ++-- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 14/15] memory: return MemoryRegion from qemu_ram_addr_from_host

2013-06-02 Thread Peter Maydell
On 2 June 2013 16:43, Paolo Bonzini pbonz...@redhat.com wrote: -int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); +MemoryRegion *qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr); This is weird, because now the _nofail