[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH V2 0/9] Domain on Static Allocation
Static Allocation refers to system or sub-system(domains) for which memory areas are pre-defined by configuration using physical address ranges. Those pre-defined memory, -- Static Memory, as parts of RAM reserved in the beginning, shall never go to heap allocator or boot allocator for any use. This Patch Serie only talks about Domain on Static Allocation. ABOUT IMPLEMENTATION ON DEVICE TREE FORMAT OF STAIIC ALLOCATION IS STILL UNDER DISCUSSION, AND RELATED CHANGE WILL BE INCLUDED IN PATCH V3. Looking into related [design link]( https://lists.xenproject.org/archives/html/xen-devel/2021-05/msg00882.html) for more details. The whole design is about Static Allocation and 1:1 direct-map, and this Patch Serie only covers parts of it, which are Domain on Static Allocation. Other features will be delievered through different patch series. --- changes in v2: - consider reserved-memory binding and use phandle to refer(still in discussion) - remove unused reserved field in struct page_info, unused helper page_get_reserved_owner and page_set_reserved_owner - introduce CONFIG_STATIC_ALLOCATION to avoid bringing dead codes in other archs. - extract common code from free_heap_pages and free_staticmem_pages - introduce new interface assign_pages_nr - change pfn-named to mfn-named - remove meaningless MEMF_no_owner case - leave zone concept out of DMA limitation check - take care of concurrency issue on static memory allocation - ensure the consistency when `xen,static-mem` and `memory` are both defined - fix the scalability issue in allocate_static_memory - allocate static memory when parse Penny Zheng (9): xen/arm: introduce domain on Static Allocation xen/arm: introduce PGC_reserved xen/arm: introduce CONFIG_STATIC_ALLOCATION xen/arm: static memory initialization xen: introduce assign_pages_nr xen/arm: introduce alloc_staticmem_pages and alloc_domstatic_pages xen/arm: take care of concurrency on static memory allocation xen/arm: check `xen,static-mem` property during domain construction xen/arm: introduce allocate_static_memory docs/misc/arm/device-tree/booting.txt | 49 ++++++ xen/arch/arm/Kconfig | 3 + xen/arch/arm/bootfdt.c | 12 +- xen/arch/arm/domain_build.c | 188 +++++++++++++++++++- xen/arch/arm/setup.c | 27 +++ xen/common/page_alloc.c | 238 +++++++++++++++++++++++--- xen/include/asm-arm/mm.h | 3 + xen/include/asm-arm/setup.h | 2 + xen/include/xen/mm.h | 18 +- 9 files changed, 507 insertions(+), 33 deletions(-) -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |