Re: [Qemu-devel] [PATCH 12/40] memory: add address_space_translate

2013-05-20 Thread Paolo Bonzini
Il 07/05/2013 20:08, Peter Maydell ha scritto: >> > >> > -section = phys_page_find(address_space_memory.dispatch, addr >> >> > TARGET_PAGE_BITS); >> > +section = address_space_translate(&address_space_memory, addr, &addr, >> > &l, >> > + false); > I fi

Re: [Qemu-devel] [PATCH 12/40] memory: add address_space_translate

2013-05-07 Thread Peter Maydell
On 7 May 2013 15:16, Paolo Bonzini wrote: > Using phys_page_find to translate an AddressSpace to a MemoryRegionSection > is unwieldy. It requires to pass the page index rather than the address, > and later memory_region_section_addr has to be called. Replace > memory_region_section_addr with a f

[Qemu-devel] [PATCH 12/40] memory: add address_space_translate

2013-05-07 Thread Paolo Bonzini
Using phys_page_find to translate an AddressSpace to a MemoryRegionSection is unwieldy. It requires to pass the page index rather than the address, and later memory_region_section_addr has to be called. Replace memory_region_section_addr with a function that does all of it: call phys_page_find, c