acrn-hypervisor/misc/config_tools/static_allocators
Kunhui-Li 8c47c324f5 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*0.98 - the memory consumed by pre-launched VMs - 5G
-300M*num(number of virtio gpu instance)".
2. calculate hugepage 1G based post-launched vm memory setting.
3. check if the memory configured in post launch VMs is not larger than
the total hugepages.

Compared with the previous version, this patch removes the 2M hugepage
and the correction value, also update the formula of total hugepage.

Tracked-On: #7301
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
2022-06-13 20:56:27 +08:00
..
lib misc: configurator: Add entry "None" to HV console selector 2022-05-24 17:14:38 +08:00
bdf.py config-tools: Fix Enable SR-IOV build fail 2022-05-24 16:07:16 +08:00
board_capability.py misc: add the define of MAX_IR_ENTRIES 2022-05-20 09:08:47 +08:00
clos.py misc: move the RDT interface to common library 2022-06-11 19:53:13 +08:00
cpu_affinity.py config_tools: track whether each vCPU is used for real-time or not 2022-04-21 10:08:53 +08:00
gpa.py config-tools: extract the SSRAM area size 2022-04-18 16:47:23 +08:00
guest_flags.py misc: set PMU_PT flag for pre-launched RTVM 2022-03-29 09:34:17 +08:00
hv_ram.py misc: modify the HV start address 2022-06-09 10:46:15 +08:00
intx.py misc: fix the conflict between S5 and LPC 2022-06-06 22:26:23 +08:00
main.py misc: fix the issue of create hv node 2022-04-28 13:42:54 +08:00
memory_allocator.py config_tools: update the hugepage algorithm 2022-06-13 20:56:27 +08:00
pio.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
s5_vuart.py misc: add processing for Console vUART is None 2022-06-07 21:33:19 +08:00