mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
config-tools: refine get_pt_intx_table and check_pt_intx
Refine get_pt_intx_table. The method parse the <pt_inx> of scenario and append the pair of phys_gsi and virt_gsi if there is any. Refine check_pt_intx. Add a condition that the method returns if the phys_gsi and virt_gsi are empty dictionary. Tracked-On: #6178 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
@@ -1215,6 +1215,9 @@ def check_pt_intx(phys_gsi, virt_gsi):
|
||||
if not phys_gsi and not virt_gsi:
|
||||
return
|
||||
|
||||
if len(phys_gsi) == 0 and len(virt_gsi) == 0:
|
||||
return
|
||||
|
||||
if not board_cfg_lib.is_matched_board(('ehl-crb-b','generic_board')):
|
||||
ERR_LIST["pt_intx"] = "only board ehl-crb-b/generic_board is supported"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user