acrn-hypervisor/misc/config_tools/xforms
Kunhui-Li 019ae24c94 config_tools: update the hugepage algorithm
update the hugepages algorithm as the following steps.
1. calculate the total hugepages of service vm using the formula.
   "total memory - the memory consumed by pre-launched VMs - 3G
   -1G(memory need by service vm supporting virtio gpu)
   -300M*num(number of virtio gpu instance)"
2. calculate hugepage 2M/1G based post-launched vm memory setting.
3. correct the 2M/1G hugepages with the total hugepages in step 1.
   "correct_mb, correct_gb= math.modf(total hugepages - the memory
    consumed by Post_launched vm)
    hugepages_1gb = hugepages_1gb + correct_gb
    hugepages_2mb = hugepages_2mb + math.ceil(correct_mb*1024/2)"

Tracked-On: #7301
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2022-05-07 10:51:10 +08:00
..
board_info.h.xsl board_inspector: avoid hard-coded topo level names 2022-01-29 11:54:03 +08:00
config.h.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
config.mk.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
config_common.xsl config tool: update schema 2022-04-18 19:29:51 +08:00
ivshmem_cfg.h.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
lib.xsl misc: refine cache config 2022-04-24 16:52:24 +08:00
misc_cfg.h.xsl config_tools: update the hugepage algorithm 2022-05-07 10:51:10 +08:00
pci_dev.c.xsl config_tools: merge data in launch XMLs into scenario XMLs 2022-03-15 10:22:37 +08:00
pt_intx.c.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vm_configurations.c.xsl misc: refine cache config 2022-04-24 16:52:24 +08:00
vm_configurations.h.xsl config_tools: refine memory setting for HPAn 2022-04-22 14:46:05 +08:00