mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
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:
parent
38f910e4fb
commit
796fb2971c
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user