mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 22:42:53 +00:00
acrn-config: add PRE_RT_VM in config app
add vm type PRE_RT_VM in config app Tracked-On: #5081 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
This commit is contained in:
parent
8bcab8e294
commit
5731547893
@ -51,6 +51,7 @@ the source files will be generated into default path and overwirte the previous
|
|||||||
<div class="dropdown col-sm-6">
|
<div class="dropdown col-sm-6">
|
||||||
<select class="selectpicker" data-width="auto" id="add_vm_type">
|
<select class="selectpicker" data-width="auto" id="add_vm_type">
|
||||||
<option value="PRE_STD_VM">PRE_STD_VM</option>
|
<option value="PRE_STD_VM">PRE_STD_VM</option>
|
||||||
|
<option value="PRE_RT_VM">PRE_RT_VM</option>
|
||||||
<option value="SAFETY_VM">SAFETY_VM</option>
|
<option value="SAFETY_VM">SAFETY_VM</option>
|
||||||
<option value="SOS_VM">SOS_VM</option>
|
<option value="SOS_VM">SOS_VM</option>
|
||||||
<option value="POST_STD_VM">POST_STD_VM</option>
|
<option value="POST_STD_VM">POST_STD_VM</option>
|
||||||
|
@ -1086,7 +1086,7 @@ def assign_vm_id(scenario_config):
|
|||||||
if vm.tag == 'vm':
|
if vm.tag == 'vm':
|
||||||
for item in vm.getchildren():
|
for item in vm.getchildren():
|
||||||
if item.tag == 'vm_type':
|
if item.tag == 'vm_type':
|
||||||
if item.text in ['PRE_STD_VM', 'SAFETY_VM']:
|
if item.text in ['PRE_STD_VM', 'SAFETY_VM', 'PRE_RT_VM']:
|
||||||
pre_launched_vm_num += 1
|
pre_launched_vm_num += 1
|
||||||
elif item.text in ['SOS_VM']:
|
elif item.text in ['SOS_VM']:
|
||||||
sos_vm_num += 1
|
sos_vm_num += 1
|
||||||
@ -1100,7 +1100,7 @@ def assign_vm_id(scenario_config):
|
|||||||
if vm.tag == 'vm':
|
if vm.tag == 'vm':
|
||||||
for item in vm.getchildren():
|
for item in vm.getchildren():
|
||||||
if item.tag == 'vm_type':
|
if item.tag == 'vm_type':
|
||||||
if item.text in ['PRE_STD_VM', 'SAFETY_VM']:
|
if item.text in ['PRE_STD_VM', 'SAFETY_VM', 'PRE_RT_VM']:
|
||||||
vm.attrib['id'] = str(pre_launched_vm_index)
|
vm.attrib['id'] = str(pre_launched_vm_index)
|
||||||
pre_launched_vm_index += 1
|
pre_launched_vm_index += 1
|
||||||
elif item.text in ['SOS_VM']:
|
elif item.text in ['SOS_VM']:
|
||||||
|
Loading…
Reference in New Issue
Block a user