qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/21] exec: Resolve subpages in one step except


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 04/21] exec: Resolve subpages in one step except for IOTLB fills
Date: Fri, 31 May 2013 14:58:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

On 05/30/2013 02:16 PM, Paolo Bonzini wrote:
>  static MemoryRegionSection *address_space_lookup_region(AddressSpace *as,
> -                                                        hwaddr addr)
> +                                                        hwaddr addr,
> +                                                        bool resolve_subpage)
>  {
> -    return phys_page_find(as->dispatch, addr >> TARGET_PAGE_BITS);
> +    MemoryRegionSection *section;
> +    subpage_t *subpage;
> +
> +    section = phys_page_find(as->dispatch, addr >> TARGET_PAGE_BITS);
> +    if (resolve_subpage && section->mr->subpage) {
> +        subpage = container_of(section->mr, subpage_t, iomem);
> +        section = &phys_sections[subpage->sub_section[SUBPAGE_IDX(addr)]];
> +    }
> +    return section;
>  }

Was there somewhere else that no longer needs to check phys_sections?
Or does that get eliminated in the course of subsequent patches?


r~



reply via email to

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