mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-07 12:42:36 +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:
@@ -119,16 +119,16 @@ def get_ivshmem_enabled_by_tree(etree):
|
||||
return shmem_enabled
|
||||
|
||||
def is_pre_launched_vm(vm_type):
|
||||
if vm_type in PRE_LAUNCHED_VMS_TYPE:
|
||||
if vm_type is 'PRE_LAUNCHED_VM':
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_post_launched_vm(vm_type):
|
||||
if vm_type in POST_LAUNCHED_VMS_TYPE:
|
||||
if vm_type is 'POST_LAUNCHED_VM':
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_sos_vm(vm_type):
|
||||
if vm_type in SERVICE_VM_TYPE:
|
||||
def is_service_vm(vm_type):
|
||||
if vm_type is 'SERVICE_VM':
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user