def gen_pci_hide(config): """Generate hide pci information for this platform""" + + scenario_etree = lxml.etree.parse(common.SCENARIO_INFO_FILE) + hidden_pdev_list = [x.replace('.', ':') for x in scenario_etree.xpath(f"//HIDDEN_PDEV/text()")] + if board_cfg_lib.BOARD_NAME in
+ + if len(hidden_pdev_list) > 0: hidden_pdev_num = len(hidden_pdev_list) print("const union pci_bdf
plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM] = {",
file=config) for hidden_pdev_i in range(hidden_pdev_num): diff --git a/misc/config_tools/schema/VMtypes.xsd
b/misc/config_tools/schema/VMtypes.xsd
index ce4ef09be..4ced8e02d 100644 --- a/misc/config_tools/schema/VMtypes.xsd +++ b/misc/config_tools/schema/VMtypes.xsd @@ -272,6 +272,16 @@ The size is a subset of the VM's total memory size