config-tools: board inspector exits if the VMD is configured

Board inspector does not support multiple PCI segment. Stop running and
throw out the message for user to disable VMD from BIOS setting.

Tracked-On: #8327
Signed-off-by: yuchuyang <yu-chu.yang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
yuchuyang 2022-11-08 10:32:28 -08:00 committed by acrnsi-robot
parent 38f910e4fb
commit 796fb2971c

View File

@ -75,10 +75,12 @@ def native_check():
"Only KVM or QEMU is supported. Unexpected results may occur.")
def check_pci_domains():
root_buses = filter(lambda x: x.startswith("pci"), os.listdir("/sys/devices"))
domain_ids = set(map(lambda x: x.split(":")[0].replace("pci", ""), root_buses))
root_buses = os.listdir("/sys/bus/pci/devices/")
domain_ids = set(map(lambda x: x.split(":")[0], root_buses))
if len(domain_ids) > 1:
logger.fatal(f"ACRN does not support platforms with multiple PCI domains {domain_ids}. Check if the BIOS has any configuration that consolidates those domains into one.")
logger.fatal(f"ACRN does not support platforms with multiple PCI domains {domain_ids}. " \
"Check if the BIOS has any configuration that consolidates those domains into one. " \
"Known causes of multiple PCI domains include: VMD (Volume Management Device) being enabled.")
sys.exit(1)
def bring_up_cores():