[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Questions about xen memory management
Thanks for your reply. 2013/8/8 Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Yes, is_xen_heap_mfn() function can whether the physical address is in xenheap or not. But how the init_heap_pages() knows the page is belonged to xenheap or domheap. Because the phys_to_nid() always return 0;
The second model is used on systems which have large enough virtual As setup_xenheap_mappings() function is one to one mapping xenheap physical to 1G--2G virtual space range. I am wondering what the Xenheap virtual space(1G-2G) is used for ? Because I can allocate xen pages from xenheap by alloc_xenheap_pages() and I can track pages by frametable.
In VM_init(): for ( i = 0, va = (unsigned long)vm_bitmap; i < nr; ++i, va += PAGE_SIZE )
{ struct page_info *pg = alloc_domheap_page(NULL, 0); map_pages_to_xen(va, page_to_mfn(pg), 1, PAGE_HYPERVISOR); clear_page((void *)va); }
It seems not only allocate page table pages ,but also allocates vmap pages by alloc_domheap_page().
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |