mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-01 03:45:29 +00:00
This patch extracts information on mapping of available RAM and put them under the `/acrn-config/memory` node in the board XML. Each range of available RAM is represented by its start (host physical) address, end address and size (in byte). The following is an example of the generated XML. <memory> <range start="0x0000000000000000" end="0x0000000000057fff" size="360448"/> <range start="0x0000000000059000" end="0x000000000009dfff" size="282624"/> <range start="0x0000000000100000" end="0x00000000c9ff9fff" size="3387924480"/> <range start="0x00000000c9ffc000" end="0x00000000d984afff" size="260370432"/> <range start="0x00000000dbdff000" end="0x00000000dbdfffff" size="4096"/> <range start="0x0000000100000000" end="0x000000041dffffff" size="13388218368"/> </memory> Tracked-On: #5922 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
acpiparser | ||
cpuparser | ||
extractors | ||
legacy | ||
lib | ||
memmapparser | ||
pcieparser | ||
smbiosparser | ||
cli.py | ||
README |
board_parser.py will collect all board related info and then generate a board info file for acrn-config host tool usage. usage: python3 run.py <board_name> [--out board_info_file] board_name : the name of board that run ACRN hypervisor, like apl-up2/nuc7i7dnb. It will be used as name of the board configurations folder which created by acrn-config host tool. board_info_file : (optional) the name of board info file. if it is not specified, a name of <board_name>.xml will be generated under the current working directory by default. Please run this script under native Linux environment with root privilege. OS requirement: Release: Ubuntu 18.04+ or ClearLinux 30210+ Tools: cpuid, rdmsr, lspci, dmidecode kernel cmdline: "idle=nomwait intel_idle.max_cstate=0 intel_pstate=disable"