mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
vm load: add SOS cmdline option for hugetlb
adding "hugepagesz=1G" and "hugepages=X" into SOS cmdline, for X, current strategy is making it equal e820_mem.total_mem_size -CONFIG_REMAIN_1G_PAGES if CONFIG_REMAIN_1G_PAGES is not set, it will use 3 by default. CONFIG_CMA is added to indicate using cma cmdline option for SOS kernel, by default system will use hugetlb cmdline option if no CONFIG_CMA defined. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
This commit is contained in:
@@ -62,6 +62,7 @@ struct vhm_request;
|
||||
struct e820_mem_params {
|
||||
uint64_t mem_bottom;
|
||||
uint64_t mem_top;
|
||||
uint64_t total_mem_size;
|
||||
uint64_t max_ram_blk_base; /* used for the start address of UOS */
|
||||
uint64_t max_ram_blk_size;
|
||||
};
|
||||
|
Reference in New Issue
Block a user