[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 17/30] memory: add address_space_translate

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 17/30] memory: add address_space_translate
Date: Thu, 23 May 2013 19:15:22 +0100

On 21 May 2013 11:57, Paolo Bonzini <address@hidden> 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 function that does all of it: call
> phys_page_find, compute the offset within the region, and check how
> big the current mapping is.  This way, a large flat region can be written
> with a single lookup rather than a page at a time.
> address_space_translate will also provide a single point where IOMMU
> forwarding is implemented.
> Signed-off-by: Paolo Bonzini <address@hidden>

4 overlength lines in this patch. Otherwise
Reviewed-by: Peter Maydell <address@hidden>

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]