acrn-hypervisor/misc/config_tools/board_inspector
Kunhui-Li c9de9b61a3 config_tools: add BIOS invalid setting check
1. check if VMX feature is enabled in the BIOS setting.
If disabled, board inspector will show error message.
2. check if Hyper-Threading is enabled in the BIOS setting.
If enabled, board inspector will show warning message.
3. check if VT-d is enabled in the BIOS setting.
If disabled, board inspector will show error message.

v2-->v3:
Use the class names instead of addresses, and invoke the rdmsr method
of each class.

v1-->v2:
1. For the Hyper-Threading BIOS check, update the log level to the warning.
2. For VMX invalid BIOS check, the XDS does the actual check,
the board inspector only collects information.

Tracked-On: #6689
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2022-03-30 09:43:31 +08:00
..
acpiparser config_tools: category based on different log levels 2022-02-17 14:49:25 +08:00
cpuparser config_tools: add BIOS invalid setting check 2022-03-30 09:43:31 +08:00
extractors config_tools: add BIOS invalid setting check 2022-03-30 09:43:31 +08:00
inspectorlib board_inspector: add schema-based board checks 2022-03-30 09:43:31 +08:00
legacy config-tools: update board inspector to update pci.ids before fetching PCI information 2022-02-17 14:59:52 +08:00
memmapparser board_inspector/memmapparser: add parser of e820 memory maps 2021-05-16 19:02:00 +08:00
pcieparser config_tools: skip directories without a "config" file 2022-01-24 15:38:39 +08:00
schema config_tools: add BIOS invalid setting check 2022-03-30 09:43:31 +08:00
smbiosparser config_tools: category based on different log levels 2022-02-17 14:49:25 +08:00
board_inspector.py board_inspector: add schema-based board checks 2022-03-30 09:43:31 +08:00
README doc: add iomem kernel parameter for board inspector 2021-09-24 11:40:24 -07:00

board_parser.py will collect all board related info and then generate a board info file for acrn-config host tool usage.

usage: python3 board_inspector.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+
	Tools:		cpuid, rdmsr, lspci, lxml, dmidecode (optional)
	kernel cmdline: "idle=nomwait iomem=relaxed intel_idle.max_cstate=0 intel_pstate=disable"