mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +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:
@@ -45,4 +45,5 @@
|
||||
#define CONFIG_LOW_RAM_SIZE 0x000CF000
|
||||
#define CONFIG_RAM_START 0x6E000000
|
||||
#define CONFIG_RAM_SIZE 0x02000000 /* 32M */
|
||||
#define CONFIG_CMA
|
||||
#endif /* BSP_CFG_H */
|
||||
|
Reference in New Issue
Block a user