Skip to content

Commit db909ed

Browse files
Wei Liuacrnsi
authored andcommitted
acrn-config: refine the data type for member of class
Unify the data type for scenario item. 1. Unified the scenario item, the type modified from list to dictionary. 2. remove some unused function. 3. add 'pci_dev_num'/'pci_devs' to hybrid xml for future support. Tracked-On: #3798 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
1 parent ee66a94 commit db909ed

File tree

9 files changed

+187
-228
lines changed

9 files changed

+187
-228
lines changed

misc/acrn-config/library/board_cfg_lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ def get_order_type_by_vmid(idx):
251251
"""
252252
This is get pre launched vm count
253253
:param idx: index of vm id
254-
:return: idx and vm type mapping
254+
:return: vm type of index to vmid
255255
"""
256-
(err_dic, order_id_dic) = common.get_load_order_by_vmid(SCENARIO_INFO_FILE, VM_COUNT, idx)
256+
(err_dic, order_type) = common.get_load_order_by_vmid(SCENARIO_INFO_FILE, VM_COUNT, idx)
257257
if err_dic:
258258
ERR_LIST.update(err_dic)
259259

260-
return order_id_dic
260+
return order_type
261261

262262

263263
def get_valid_irq(board_info):

0 commit comments

Comments
 (0)