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

Re: [Xen-devel] [PATCH 15/16] arm: discard boot modules after building domain 0.



On Thu, 2012-09-06 at 14:53 +0100, Tim Deegan wrote:
> At 13:30 +0000 on 03 Sep (1346679055), Ian Campbell wrote:
> > +void __init discard_initial_modules(void)
> > +{
> > +    struct dt_module_info *mi = &early_info.modules;
> > +    int i;
> > +
> > +    for ( i = 0; i < mi->nr_mods; i++ )
> > +    {
> > +        paddr_t s = mi->module[i].start;
> > +        paddr_t e = s + PAGE_ALIGN(mi->module[i].size);
> > +
> > +        init_domheap_pages(s, e);
> 
> Is there a risk of weirdness from adding non-superpage-aligned memory to
> the domheap here, given that map_domain_page always uses 2MB mappings?

I hadn't thought about this.

These regions will mesh precisely with what setup_mm has added and
therefore the result is that the entire 2MB is on the heap, I think.

These non-aligned looking regions are actually within larger regions of
RAM so I don't think there is any danger of actually mapping some
non-RAM as part of such a 2MB mapping?

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.