mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-10 12:32:45 +00:00
config_tools: fix the issue that fail to get apic_id node
Update the XPATH of apic_id to tolerate the variance of reported intermediate levels. Tracked-On: #7159 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
ce7b38ee04
commit
1034443796
@ -860,9 +860,9 @@ def main(args):
|
||||
|
||||
apic_ids = []
|
||||
for id in dict_pcpu_list[vm_id]:
|
||||
apic_id = common.get_node(f"//processors/die/core/thread[cpu_id='{id}']/apic_id/text()", board_etree)
|
||||
apic_id = common.get_node(f"//processors//thread[cpu_id='{id}']/apic_id/text()", board_etree)
|
||||
if apic_id is None:
|
||||
emsg = 'some or all of the processors/die/core/thread/cpu_id tags are missing in board xml file for cpu {}, please run board_inspector.py to regenerate the board xml file!'.format(id)
|
||||
emsg = 'some or all of the processors//thread/cpu_id tags are missing in board xml file for cpu {}, please run board_inspector.py to regenerate the board xml file!'.format(id)
|
||||
print(emsg)
|
||||
err_dic['board config: processors'] = emsg
|
||||
return err_dic
|
||||
|
Loading…
Reference in New Issue
Block a user