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

Re: [Xen-devel] why we need to convert "mfn_to_page(smfn)" in page_alloc.c?



On 10/12/12 14:02, asad raza wrote:
void init_domheap_pages(paddr_t ps, paddr_t pe)
{
     unsigned long smfn, emfn;

     ASSERT(!in_irq());

     smfn = round_pgup(ps) >> PAGE_SHIFT;
     emfn = round_pgdown(pe) >> PAGE_SHIFT;

     init_heap_pages(mfn_to_page(smfn), emfn - smfn);
}
Becasue "init_heap_pages" takes struct page_info, rather than a page number?

The init_heap_pages does convert the start page to a mfn, but not all callers of init_heap_pages has a mfn in the first place, so I gues it's just "we have to do this anyways.

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




_______________________________________________
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®.