acrn-hypervisor/misc/config_tools/board_inspector
Junjie Mao 46fab9e8a0 board_inspector: extract PF and VF info
This patch adds logic to the extractors to fetch the following information.

  1. All the details of an SR-IOV capability, which are reported in the
     SR-IOV extended capability structure.

  2. Correctly report the vendor ID, device ID and BAR addresses of VFs.

  3. Refer each VF back to the corresponding PF. Use XPATH to search for
     all the VFs enabled by a PF.

Tracked-On: #7301
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-04-18 14:58:58 +08:00
..
acpiparser Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
cpuparser Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
extractors board_inspector: extract PF and VF info 2022-04-18 14:58:58 +08:00
inspectorlib Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
legacy Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
memmapparser Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
pcieparser board_inspector: parse SR-IOV capability structure properly 2022-04-18 14:58:58 +08:00
schema config_tools: add BIOS invalid setting check 2022-03-30 09:43:31 +08:00
smbiosparser Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
README doc: add iomem kernel parameter for board inspector 2021-09-24 11:40:24 -07:00
board_inspector.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00

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 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"