mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 07:21:37 +00:00
config_tools/upgrader: convert the old SERVICE_VM type
In the old days SERVICE_VM was also an acceptible VM type. It is now converted to the load_order, with the vm_type field replaced by STANDARD_VM. This patch adds this conversion logic into the upgrader. Tracked-On: #6690 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
e1f5c32ea2
commit
9197193e12
@ -402,7 +402,7 @@ class ScenarioUpgrader(ScenarioTransformer):
|
|||||||
old_guest_flag_nodes or \
|
old_guest_flag_nodes or \
|
||||||
(old_rtos_type_nodes and old_rtos_type_nodes[0].text in ["Soft RT", "Hard RT"]):
|
(old_rtos_type_nodes and old_rtos_type_nodes[0].text in ["Soft RT", "Hard RT"]):
|
||||||
new_node.text = "RTVM"
|
new_node.text = "RTVM"
|
||||||
elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM"]:
|
elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM", "SERVICE_VM"]:
|
||||||
new_node.text = "STANDARD_VM"
|
new_node.text = "STANDARD_VM"
|
||||||
else:
|
else:
|
||||||
new_node.text = old_vm_type_node.text
|
new_node.text = old_vm_type_node.text
|
||||||
|
Loading…
Reference in New Issue
Block a user