mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
config tool: add load_order and redefine vm_type
This patch includes: 1.add load_order(PRE_LAUNCHED_VM/SERVICE_VM/POST_LAUNCHED_VM) parameter 2.change vm_type parameter to values as RTVM, STANDARD_VM, TEE, REE TEE and REE are hide in UI. 3.deduce vm severity in vm_configuration from vm_type and load_order This patch not includes: change for scenario_config and functions called by scenario_config about checking v2->v3: *Refine template load_order v1->v2: *Change variable name from vm_type to load_order *Change LoadOptionType to LoadOrderType *Change VMOptionsType to VMType *Add TEE_VM/REE_VM description *Refine acrn:is-pre-launched-vm Tracked-On: #6690 Signed-off-by: hangliu1 <hang1.liu@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -800,8 +800,8 @@ def main(args):
|
||||
dict_pcpu_list = collections.OrderedDict()
|
||||
for vm in scenario_root.findall('vm'):
|
||||
vm_id = vm.attrib['id']
|
||||
vm_type_node = vm.find('vm_type')
|
||||
if (vm_type_node is not None) and (vm_type_node.text in ['PRE_STD_VM', 'SAFETY_VM', 'PRE_RT_VM']):
|
||||
load_order_node = vm.find('load_order')
|
||||
if (load_order_node is not None) and (load_order_node.text == 'PRE_LAUNCHED_VM'):
|
||||
dict_passthru_devices[vm_id] = []
|
||||
for pci_dev_node in vm.findall('pci_devs/pci_dev'):
|
||||
if pci_dev_node is not None and pci_dev_node.text is not None and pci_dev_node.text.strip():
|
||||
@@ -824,7 +824,8 @@ def main(args):
|
||||
for vm in scenario_root.findall('vm'):
|
||||
vm_id = vm.attrib['id']
|
||||
vm_type_node = vm.find('vm_type')
|
||||
if (vm_type_node is not None) and (vm_type_node.text in ['PRE_RT_VM']):
|
||||
load_order_node = vm.find('load_order')
|
||||
if (load_order_node is not None) and (load_order_node.text == 'PRE_LAUNCHED_VM') and (vm_type_node.text == 'RTVM'):
|
||||
PRELAUNCHED_RTVM_ID = vm_id
|
||||
break
|
||||
except:
|
||||
|
Reference in New Issue
Block a user